Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
16
Task/Classes/PascalABC.NET/classes.pas
Normal file
16
Task/Classes/PascalABC.NET/classes.pas
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
type Person = class
|
||||
Name: string;
|
||||
Age: integer;
|
||||
public
|
||||
constructor (Name: string; Age: integer);
|
||||
begin
|
||||
Self.Name := Name;
|
||||
Self.Age := Age;
|
||||
end;
|
||||
procedure Output := Print($'{Name} {Age}');
|
||||
end;
|
||||
|
||||
begin
|
||||
var p := new Person('John',18);
|
||||
p.Output
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue