ITWissen.info - Tech know how online

Class object

The approach of object-oriented programming assumes that every activity goes back to the action of an object. In particular the production of instances of a certain class is such an activity. One can attribute this activity to a special "instantiation object", which then uses construction information from the class definition.

Clean in the sense of the information encapsulation is the view that there is to each class a special "Instanziierungsobjekt", which knows the class information. As such one can understand the class itself, which becomes thereby the class object.

One calls such a class object in this context then also factory object, which creates and/or again deletes objects by operations such as "create" and possibly also "destroy". Factory and/or class objects can have however also further characteristics. The attributes of the class objects are also called class attributes (or class variables), the methods accordingly as class methods. The constructors in each class can be regarded in this sense also as class methods of the class objects.

Informations:
Englisch: Class object
Updated at: 23.11.2009
#Words: 168
Links: object (O), indium (In), class, attribute, information
Translations: DE
Sharing:    

All rights reserved DATACOM Buchverlag GmbH © 2024