ITWissen.info - Tech know how online

constructor (OOP)

The term constructor is used in object-oriented programming( OOP). A constructor is a method that creates an object and/or initializes its attributes. A constructor that creates objects must be defined as a class method, while the constructor that initializes only the attributes of an object can also be defined as an instance method.

The opposite mechanism to the constructor is the destructor.

Informations:
Englisch: constructor (OOP)
Updated at: 29.11.2009
#Words: 63
Links: object (O), occupant out of position (OOP), method, class, destructor
Translations: DE
Sharing:    

All rights reserved DATACOM Buchverlag GmbH © 2024