[Solved] What is the difference between overloading the assignment operator and any other operator?
Here are two differences: An overloaded assignment operator must be a member of the class being assigned to; it cannot be declared as a free function. Copy and move assignment operators will be implicitly declared for your class if you do not declare them yourself (subject to certain restrictions). solved What is the difference between … Read more