Class and Object Manipulation
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. |
Calls a parent class method from within the subclass. |
|
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. |
Returns a reference to an OLE object. |
For more information about using classes and objects, see Object-Oriented Programming.