Predict the output of the following overloaded program. int square (int a); int sqare (duble a); void main () { int p = 12; doble q = 25.5; cout << square (q); } int square (int a) { return a ∗ a; } int square (doble a) { return a ∗ a; }
144
25.5
What is implemented by Function overloading?
Abstraction
Determining the exact implementation of a request based on both the request (operation) name and the receiving object at the run-time is
Early binding
Late binding
56
27
9
3
Exact match
Which one of the following functions defined inside a class?
Function definition
Which one of the following is function name having several definitions that are differentiable by number or type of their arguments?
Function overloading
Structure
OOP-feature
@
What is morph in polymorphism?
More than one
Many forms
Polymorphism
Class