Constructors and Destructors.
Constructor
The
constructor
is executed when an object is created. Its purpose is to initalise variables with in an object before they can be used.
If you do not provide a constructor for a class, the compiler will create a default constructor for you.
If the object has global scope, the constructor is executed before main()
Copy Constructor
Assignment Constructor
Destructor
Examples:
o
Example program.
See Also:
C References
o
data types
.
Top
Master Index
Keywords
Functions
Martin Leslie
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル