Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
OBJECT Keyword
◄Keywords► ◄Contents► ◄Index► ◄Back►
TYPE
<Class> = OBJECT │ OBJECT( <Parent-Class> )
<Field List>
<Methods>
END;
Description
The keyword OBJECT declares one or more data structures and the
procedures and functions manipulating them. An object is a
user-defined type. Procedures and functions that manipulate the
data structures and provide an interface to them are called
methods.
Objects provide total isolation of data structure information. An
application never knows how the data it uses is stored, and it
never knows how the services an object provides are implemented.
This encapsulation feature allows the design of highly modular and
easily maintainable application code. Also, through the property of
inheritance, objects offer the reusability and amplification of
existing code. A new object can not only inherit the properties
of an existing object, but it can add to or modify the properties
of that object.
See also: INHERITED, OVERRIDE