Does the overloaded equal operator return a value in C++?
Yes In C++, when the equal operator is overloaded, it returns a value. The value returned is the result of the assignment operation, which is the value assigned to the variable on the left-hand side of the equal operator. When you overload the equal operator in C++, you can customize how two objects of a …
Read moreDoes the overloaded equal operator return a value in C++?