Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
|
|
@ -0,0 +1,16 @@
|
|||
type
|
||||
Point = auto class // class with autogenerated constructor
|
||||
x,y: real;
|
||||
static function RandomPoint := new Point(Random(-10..10),Random(-10..10));
|
||||
procedure Print;
|
||||
begin
|
||||
Writeln($'{x} {y}');
|
||||
end;
|
||||
end;
|
||||
|
||||
begin
|
||||
var p := new Point(2,3);
|
||||
p.Print; // instance method call
|
||||
p := Point.RandomPoint; // static method call
|
||||
p.Print;
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue