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.
Whereas Polymorphism is the ability to create a variable, a function, or an object that has more than one form.
0 Comments
Please add nice comments or answer ....