If 2 classes derive one base class and redefine a function of base class, also overload some operators inside class body. Among these two things of function and operator overloading, where is polymorphism used?
(a) Function overloading only
(b) Operator overloading only
(c) Both of these are using polymorphism
(d) Either function overloading or operator overloading because polymorphism can be applied only once in a program
I had been asked this question in a national level competition.
The above asked question is from Polymorphism topic in section OOPs Concept & Features of Object Oriented Programming