1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
{ Old file: tbs0139a.pp } { } unit ub0119; {$mode objfpc} interface type SomeClass=class(TObject) protected procedure doSomething; virtual; end ; implementation procedure SomeClass.doSomething; begin Writeln ('Hello from SomeClass.DoSomething'); end ; end.