If 2 Classes Derive One Base Class And Redefine A Function Of #75
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?
This multiple choice question (MCQ) is related to the book/course
gs gs111 OOP Object Oriented Programming Java.
It can also be found in
gs gs111 OOPs Concept & Features - OOPs MCQ: Polymorphism - Quiz No.2.
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?
Function overloading only
Operator overloading only
Both of these are using polymorphism
Either function overloading or operator overloading because polymorphism can be applied only once in a program