- Polymorphism word is made Greek words poly(many) and morphism(shape/forms).
- It means we can use same method/function name for different types.
- We generally uses two types of polymorphism in c++,java ,c# etc.But python support only one polymorphism that is called run-time polymorphism.
Types of Polymorphism :-
- Compile time polymorphism (e.g. method overloading)
- Run-time polymorphism (e.g. method overriding)
1.) Compile time polymorphism:-
- It is used for method overloading.
- It support compile-time binding.Python does not support compile time polymorphism.
- In this, class ,method and object are bind at compile time.