The keyword object is used to declare a new object type:
type foo = object a: Integer; constructor Init; procedure Bar (x: Integer); virtual; end;
(For a longer example, see OOP.)
GNU Pascal follows the Borland Pascal 7.0 object model.
ISO Pascal does not support Object-oriented programming. There is an ANSI draft for an “Object Pascal” language which is not yet supported by GPC, but planned. The Delphi language, also called “Object Pascal” by Borland, is currently not supported by GPC either.
Keywords, OOP, record.