Which among doesn’t illustrates polymorphism?

Which among doesn’t illustrates polymorphism?
A. Function overloading
B. Function overriding
C. Operator overloading
D. Virtual function
 
Answer: b
Explanation: Function overriding doesn’t illustrate polymorphism because the functions are actually different and theirs scopes are different. Function and operator overloading illustrate proper polymorphism. Virtual functions show polymorphism because all the classes which inherit virtual function, define the same function in different ways.
 

Tìm kiếm

Back
Top