Working with Classes and Objects

See Also

Visual FoxPro provides two special operators for object programming: the dot operator (.) and the scope resolution operator (::). Visual FoxPro also adds commands that enable you to create a class, and to create and add objects to a class.

Operator, Command, Function Description
.  (Dot operator) Scopes objects to their parents and properties, events, and methods to objects.
:: (Scope resolution operator) Calls a parent class method from within the subclass.
CREATEOBJECT( ) Creates an object from a class, a subclass, or an OLE object.
DEFINE CLASS
  with ADD OBJECT clause
Creates a class definition. The ADD OBJECT clause adds an object based on an existing class or subclass at design time.
GETOBJECT( ) Returns a reference to an OLE object.

For more information about using classes and objects, see Chapter 3, "Object-Oriented Programming, in the Programmer's Guide.