info@avatto.com
+91-9920808017
26. Specifically, overloading involves
one function with a variety of arguments
multiple functions defined with the same name
one function with multiple names
multiple functions with different names.
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
27. A usable function header for an overloaded » operator for a Number class is
Number operator » (istream & in, Number &num)
istream & operator » (istream & in, const Number & num)
friend istream & operator» (istream & in, Number & num)
istream & operator » (istream & in, Number &num)
28. If » operator is overloaded properly for use for input with a number class, and a and b are member of the Number class, which of the following statements allowed?
cin >>a
cin >> a,b
Both (a) and (b)
None of these
29. Assume num = 8; the value of expression num++ is
7
8
9
Impossible to tell
30. If ++ operator is overloaded properly, then operator ++ () function returns
a copy of an incremented member of a class
a copy of an incremented data item
a reference to a class member data item
this pointer
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