mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 01:08:09 +02:00
29 lines
365 B
ObjectPascal
29 lines
365 B
ObjectPascal
type
|
|
tmyobject = object
|
|
constructor init;
|
|
procedure callit; virtual;
|
|
destructor done; virtual;
|
|
end;
|
|
|
|
|
|
constructor tmyobject.init;
|
|
Begin
|
|
end;
|
|
|
|
destructor tmyobject.done;
|
|
Begin
|
|
end;
|
|
|
|
procedure tmyobject.callit;
|
|
Begin
|
|
WriteLn('Hello...');
|
|
end;
|
|
|
|
var
|
|
obj: tmyobject;
|
|
Begin
|
|
obj.init;
|
|
obj.callit;
|
|
{ obj.done;}
|
|
end.
|