And abstract function that is able to take different datatypes. I used an example of creating a Shape class and requiring it to do different operations on different shapes such as triangles and rectangles.
3
Sigiloso
7 de fev. de 2016
There're lot of types of polymorphism, the main two groups go under universal and ad-hoc polymorphisms. Further division goes under inclusion, parametric, overloading and coercion.