[fpc-pascal] PASCAL programming for Novice
Francisco Reyes
lists at stringsutils.com
Sat Jun 9 16:55:45 CEST 2007
Michael Van Canneyt writes:
> Both Turbo Pascal's Object Pascal and Delphi's object pascal are
> supported, depending on which mode you compile in.
If I have a class like:
program myclass;
type
THelloWorld = class
procedure Put;
end;
var
HelloWorld: THelloWorld;
procedure THelloWorld.Put;
begin
WriteLn('Hello, World!');
end;
begin
HelloWorld := THelloWorld.Create;
HelloWorld.Put;
HelloWorld.Free;
end.
How do I use that class in another program?
More information about the fpc-pascal
mailing list