info@avatto.com
+91-9920808017
36. Which of the following is the best prototype to overload the « operator for a Number class?
ostream & « (ostream & out, const Number &num)
friend ostream & operator« (ostream & out, const Number &num);
Number & operator« (ostream & out, const Number & num);
friend ostream operator« (const. Number &num)
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
37. If an = operator is used with classes, then
must have overloaded
may have overloaded
must not have overloaded
equal cannot be used with classes.
38. If subscript operator has been correctly overloaded for a Number class to accept an integer value, and num is a member of the number class, which of the following statements is correct?
[num]44
num[44]
num = [44]
num 44
39. Which of the following statements is true?
Subscript operator may take only one argument.
Parentheses operator may take only one argument
Subscript operator may take
None of these
40. The » operator
may be overloaded for input .
must be overloaded if there will be input to classes
must be overloaded if the « operator is overloaded.
may be overloaded for input, but not for shifting bits.
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