Presentation On Polymorphism by Rojip Rai
Presentation On Polymorphism by Rojip Rai
Presentation on Polymorphism
Prepared By:
Rozeep Rai (C30105210060)
Contents
• What is polymorphism?
• Example of polymorphism
• Types of polymorphism
• Advantages Of Polymorphism
• Need of polymorphism
• References
What is polymorphism?
• Polymorphism means "many forms", and it occurs when we have many classes that
are related to each other by inheritance.Java is an object-oriented programming
language that supports the concept of polymorphism.
Compile -Time
Polymorphism
Polymorphism In
Java
Run-Time
Polymorphism
1. Method Overloading in Java :
This is an example of compile time (or static polymorphism)
Code Ease Of
Cleanliness Implementation
Overloaded
Aligned With
Real World Constructors
Reusability And
Extensibility
Disadvantages Of Polymorphism
• https://www.slideserve.com/cahil/java-212-inheritance-and-polymorphism/?
utm_source=slideserve&utm_medium=website&utm_campaign=auto+related+l
oad
• 3schools.com/java/java_polymorphism.asp
• https://www.simplilearn.com/tutorials/java-tutorial/java-polymorphism