| Home | Previous Lesson: Standard Class Next Lesson: Notes on User Object Programming |
Typically, they are used to encapsulate business rules and extra functionality. You can add attributes ( instance variables ) and declare events and functions ( methods ). Whenever you want to manipulate the attributes, simply call the methods.
| AutoInstantiate property is available only to the Custom Class user objects. It is not available to the standard Class user objects. |
You should declare the instance variables as, either protected or private, otherwise any object can set their values, without going through the methods declared at the object.
For example, you could create an external function user object, to access the 16-bit Windows API calls. Methods ( functions ) are then defined to get information from Windows by using these external functions.
| Home | Previous Lesson: Standard Class Next Lesson: Notes on User Object Programming |