| Start |
|---|
| Types of Polymorphism Polymorphism means that a operation can also be applied to values of some other types. There are multiple types of Polymorphism: contains `function overloading`. The target is that a Method can be used with different types without the need of being generic. is the use of generic types. See [Generics](http://stackoverflow.com/documentation/c%23/27/generics) has the target inherit of a class to generalize a similar functionality Ad hoc polymorphismThe target of Here's a example call: SubtypingSubtyping is the use of inherit from a base class to generalize a similar behavior: Both classes The output will be was following: Refueling with petrol |
| Another Polymorphism Example Polymorphism is one of the pillar of OOP. Poly derives from a Greek term which means 'multiple forms'. Below is an example which exhibits Polymorphism. The class The Derived classes Below is the code snippet where Polymorphism is exhibited. The object is created for the base type At Line 3, the The same explanation is applicable when it invokes the The Output is shown below |
Read Article
https://develop.horje.com/learn/1434/reference