Explain the Polymorphism principle.
Polymorphism can be referred as one name many forms. It's the ability of methods to behave differently, relying upon the object who is calling it. Polymorphism exists in 3 distinct forms in Java:
- Method overloading
- Method overriding through the Java interface
- Method overriding through inheritance