Item 15: Have Operator= Return a Reference to *this
A common error amongst new C++ programmers is to have operator= return void, a decision that seems reasonable unTIL you realize it prevents chains of assignment.
Here is an example implementation:
ANSI C Supports “const“ Keyword in C99
ANSI C supports const
keyword in C99
Item 14: Make Sure Base Classes Have Virtual Destructors
The C++ language standard defines that if we try to delete a derived class object through a base class pointer and the base class has a nonvirtual destructor , the results are undefined