What is Polymorphism?
Polymorphism is one of the core concepts of object-oriented programming language. Polymorphism means the same function with different signatures is called many times. In real life, Like a Boy at the same time is a Student, Class Monitor, etc. So Boy can perform different operations at the same time is called polymorphism.
Features of Polymorphism:
- Programmers can be used same method name repeatedly.
- Polymorphism has the effect of reducing the number of functionalities that can be paired together.
Implementing Polymorphism with Functions and Object.