Default Member Functions
The following member functions are, by default, provided by the compiler
Default Constructor: class_name::class_name();1
Copy Constructor: class_name::class_name(const class_name &var);2
Assignment Operator: class_name& class_name::operator=(const class_name &var);2
Demonstrate automatic copy constructor and assignment calls using complex_test.cpp.
Notes:
If the programmer provides a constructor of any kind, then the default constructor is not provided.
It is recommended that you override the default member function, if the class contains reference (i.e., pointer) variables among its attributes.