Home Contents Index Summary Previous Next

C.2 XPCE's objects

More concretely, a XPCE object is a set of values of instance variables bundled into a single entity which is referred to by its object reference. An object is an instantiation of a class. A class holds the key to decoding the information of its instances: (16) the instance variables. The class also serves as a placeholder for storing the methods understood by its instances. Figure 42 illustrates this.

Figure 42 : Classes and Objects in XPCE

C.2.1 Classes

As explained above, a XPCE class describes the storage-layout and the methods of its instances. In XPCE a class is a normal object. It is an instance of class class. (17) As in most OO systems XPCE classes may inherit from a super-class. XPCE classes are organised in a single-inheritance hierarchy. (18) The root of this hierarchy is class object. Class object is the only class without a super-class. Figure 43 gives the complete hierarchy of XPCE built-in classes.

Figure 43 : XPCE's Class hierarchy