Ad Code

Difference in sub typing and Polymorphism ?

What is the difference between sub typing and Polymorphism ?


"Sub-Typing" means that "Derived Classes" have their own characteristics and also they inherit characteristics from "Base Class" what ever is in the form of public and protected access specifier.
Whereas Polymorphism is the ability to create a variable, a function, or an object that has more than one form.
Reactions

Post a Comment

0 Comments