Question: Which situation would require the operator to be overloaded as a non - member ( i . e . outside class ) function? a .
Which situation would require the operator to be overloaded as a nonmember ie outside class function?
a All operators can be overloaded both as member ie inside class and nonmember function.
b The left most operand or parameter is a class object or a reference to andass object
c The left most operand or parameter is an integer.
d The operator returns a reference.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
