What do you mean by polymorphism in Java?

Polymorphism means “many forms “, and it occurs when we have many classes that are related to each other by inheritance. Like we specified in the previous chapter; Inheritance lets us inherit attributes and methods from another class. Polymorphism uses those methods to perform different tasks.

Sizin İçin Seçtik  What is inheritance in Java with realtime example?

Leave a Reply

Your email address will not be published. Required fields are marked *