Default constructor
Encyclopedia : D : DE : DEF : Default constructor
C++ defines two special kinds of constructors, default and copy constructors.
Default constructor:
- Can be called with no arguments
- Construct a default object of the class type.
Copy constructor:
- Can accept a single argument of reference to same class type
- Copy objects of the class type.
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.
