This section describes the object-oriented features of the Delphi language, such as the declaration and usage of class types.
Name |
Description |
This topic covers the following material:
| |
This topic describes the syntax of class data fields declarations. | |
A method is a procedure or function associated with a class. A call to a method specifies the object (or, if it is a class method, the class) that the method should operate on. For example, SomeObject.Free calls the Free method in SomeObject. This topic covers the following material:
| |
This topic describes the following material:
| |
This topic describes the following material:
| |
Sometimes operations are performed on a class itself, rather than on instances of a class (that is, objects). This happens, for example, when you call a constructor method using a class reference. You can always refer to a specific class using its name, but at times it is necessary to declare variables or parameters that take classes as values, and in these situations you need class-reference types. This topic covers the following material:
| |
This topic covers the following material:
| |
Type declarations can be nested within class declarations. Nested types are used throughout the .NET framework, and throughout object-oriented programming in general. They present a way to keep conceptually related types together, and to avoid name collisions. The same syntax for declaring nested types may be used with the Win32 Delphi compiler. | |
This topic describes Delphi's operator methods and how to overload them. | |
This topic describes the syntax of class helper declarations. |
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|