The **assignment operator** (operator=) is used to copy values from one object to another *already existing object ...
This will call f1.operator= (f1), and under the simplistic implementation above, all of the members will be assigned to themselves. In this particular example, the self-assignment causes each member ...
Operator overloading or ad-hoc polymorphism lets you work with user defined types much the same way you work with fundamental data types Polymorphism is one of the basic principles of OOP (Object ...