Assume there is a class named Sushi implemented which overloads the > operator, by comparing a member variable in Sushi containing the price. It returns a bool indicating whether the calling object is more expensive than the parameter object. In the code below, assume that unagi and toro are valid instances of the Sushi class:
if (toro > unagi)
cout < "unagi="" is="">
Which object is being passed as a parameter to the operator> function?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here