Struct + member Function
With objects of a class, the default assignment operator does not make the two objects the same object, it only copies values of member variables from one object to another object.
We should use CPP Reference Type to use same object
If a class has a data member that points to dynamic memory
- Destructor
- Copy Constructor
- Member assignment (=) operator
- can be assign same
- remove original data
- Returns reference for chaining
CPP Class Features