c++ interview questions and answers paper 238 - skillgunNote: Paper virtual numbers may be different from actual paper numbers . In the page numbers section website displaying virtual numbers .
State whether this statement is true or false?
A function can be overloaded if arguments are same but return values are different.
Function overloading is allowed
only when functions having the same name differing in number,order or type of arguments.
Which of the following operators cannot be overloaded?
There are some operators that
cannot be overloaded.Sizeof is one
among them.Other operators that
cannot be overloaded are dot operator(.),conditional operator(?:),membership operator,point-to-member
operator(.*),scope resolution operator(::)
What is overriding?
having same function name, signature, and return type in base class and derived class.
having same function name, signature in base class and derived class. Though return type is different it is still overriding.
having same function name in base class and derived class is overriding.
having same function name with different parameters in same class is called as overriding.
Back To Top