Opentopia Directory Encyclopedia Tools

Default constructor

Encyclopedia : D : DE : DEF : Default constructor



 

C++ defines two special kinds of constructors, default and copy constructors.

Default constructor:

Copy constructor:
Constructors of base classes are not inherited by derived classes. When an object of derived class type is created, it is constructed starting with the base class components; then it moves to the derived class components.

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.


Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: