RAD Studio (Common)
ContentsIndex
PreviousUpNext
Classes and Objects

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:
  • Declaration syntax of classes
  • Inheritance and scope
  • Visibility of class members
  • Forward declarations and mutually dependent classes
 
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:
  • Methods declarations and implementation
  • Method binding
  • Overloading methods
  • Constructors and destructors
  • Message methods
 
This topic describes the following material:
  • Property access
  • Array properties
  • Index specifiers
  • Storage specifiers
  • Property overrides and redeclarations
  • Class properties
 
This topic describes the following material:
  • Event properties and event handlers
  • Triggering multiple event handlers
 
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:
  • Class reference types
  • Class operators
 
This topic covers the following material:
  • A conceptual overview of exceptions and exception handling
  • Declaring exception types
  • Raising and handling exceptions
 
Type declarations can be nested within class declarations. Nested types are used 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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!