[next] [prev] [prev-tail] [tail] [up]

## Chapter 5
Classes

In the Delphi approach to Object Oriented Programming, everything revolves around the concept of ’Classes’. A class can be seen as a pointer to an object, or a pointer to a record.

Remark: In earlier versions of Free Pascal it was necessary, in order to use classes, to put the objpas unit in the uses clause of a unit or program. This is no longer needed as of version 0.99.12. As of version 0.99.12 the system unit contains the basic definitions of TObject and TClass, as well as some auxiliary methods for using classes. The objpas unit still exists, and contains some redefinitions of basic types, so they coincide with Delphi types. The unit will be loaded automatically when the -S2 or -Sd options are specified.

5.1 Class definitions
5.2 Class instantiation
5.3 Methods
invocation
Virtual methods
Message methods
5.4 Properties

[next] [prev] [prev-tail] [front] [up]