info@avatto.com
+91-9920808017
21. You overload an operator by naming it a
variable
built-in type
function
class
Your email address will not be published. Required fields are marked *
Report
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
Comment
22. Assuming you have properly overloaded the ! operator for a Number class, and that a and b are two members of the Number class, which expression is legal?
a!
b!
a!b
All of these
23. To perform multiple arithmetic operations in a single statement, overloaded operator functions should return
void
a copy of the values passed to them
an object of the class type
address of the function
24. Which of the following is the best function prototype for an overloaded ........... for a Number class?
Number operator-(const Number & num)
Number & operator-(int num)
int Number (operator-())
void operator-(Number & num)
25. The programming language feature that allows the same operation to be carried out differently depending on the object is
polymorphism
inheritance
allocation
mangling
Login with Facebook
Login with Google
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login