What are overloaded functions?
Very long functions that can hardly run
One function containing another one or more functions inside it.
Two or more functions with the same name but different number of parameters or type.
Function with more than one form
Which among the following is an advantage of polymorphism?
Reusability of classes
Supports building extensible systems
It can hide instance variables and irrelevant methods of a class from other objects
Easy to maintain the code
Which function must be either member functions or friend functions?
Method function
Operator function
Constructor function
Data function
Which of the following permits function overloading in C++?
Type
Number of arguments
Both 1) and 2)
None of these
Which of the following is correct about operator overloading?
Making C++ operators works with objects
Giving new meaning to existing C++ operators
Making new C++ operator
Both 1) and 2) correct
Which of the following operator cannot be overloaded?
Scope resolution operator
Arrow operator
Assignment operator
Equality operator
Which of the following contains two functions with same names, parameters and return type?
Function overloading
Function overriding
Operator overloading
Method overloading
Which overloaded function is permitted for user defined data types?
Destructor overloading
Constructor overloading
Which operator can be extended to strings through operator overloading?
+
==
-
*
Which operator simply negates the data member of the class?
Operator– ()
Operator+ ()
Operator * ()
Operator =()