Assume there is a class named Animal, which overloads the = and + operators. In the following
Fantastic news! We've Found the answer you've been seeking!
Question:
Assume there is a class named Animal, which overloads the = and + operators. In the following statement, assume cat, tiger, and wildcat are all instances of the Animal class:
Of the three objects, wildcat, cat, and tiger, which is calling the operator+ function? Which object is passed as an argument into the function?
Posted Date: