constructor (reserved word)

Language:
Русский
English

   constructor (reserved word)


A constructor is a special method that initializes an object containing virtual methods.

Syntax

 constructor Method (<parameter list>);

Remarks

A constructor must be declared with the reserved word constructor.

The constructor initializes an object by setting the link between the object and the virtual method table with addresses of the code for its virtual methods.

A constructor can also be used to initialize the object data fields.

See Also

Тэги: constructor
| G+
Код для вставки: :: :: :: ::
Поделиться: // //