Pages

Sunday, October 31, 2010

How many default method does a constructor have?

*

Default constructor: Declared only if no user-defined constructor is declared. Defined when used
*

Copy constructor - declared only if the user hasn't declared one. Defined if used
*

Copy-assignment operator same as above
*


Destructor same as above

address operator (am not sure about this one)

No comments: