Register now or log in to join your professional community.
when we have a parent interface and then there are many classes implements that interface we can use the interface as a general type for that classes that implements that interface.also the overloading and the overriding are shapes of ploymorophism also
In programming languages and type theory, polymorphism is the provision of a single interface to entities of different types.A polymorphic type is a type whose operations can also be applied to values of some other type, or types.