Question: Function Overriding in Polymorphism Why is function overriding an example of polymorphism? Function overriding has a single interface ( the function name ) , but
Function Overriding in
Polymorphism
Why is function overriding an example of polymorphism?
Function overriding has a single interface the function name but only works with a single data type the derived class
Function overriding is not an example of polymorphism, it is an example of inheritance.
Function overriding has a single interface the function name and works with different forms the base and derived classes
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
