Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Written by Prashant Basnet
Prashant Basnet, a software engineer at Unisala.com, focuses on software development and enjoys building platforms to share knowledge. Interested in system design, data structures, and is currently learning NLP
1. Ad-hoc Polymorphism
Function or operator overloading based on different types
2. Parametric Polymorphism
Generic functions or types that can operate on any type.
3. Subtype Polymorphism (or Inclusion Polymorphism)
Using a subclass where a superclass is expected, common in OOP.
4. Coercion Polymorphism
this form allows for automatic conversion of types in expressions. It often occurs in languages with implicit type conversion.