Polymorphism & Virtual Methods
The lesson discusses the concepts of polymorphism including subtyping and virtual methods in detail using examples
We'll cover the following...
Polymorphism Definition
The term Polymorphism means the ability to take many forms. It occurs if there is a hierarchy of classes which are all related to each other by inheritance.
Subtyping
Subtyping is a form of polymorphism in which another class inherits from a base class to generalize a similar behavior.
You basically have a method inherited from base class but it is implemented differently in the child ...