What is polymorphism How can achieve polymorphism with example?

So polymorphism means many forms. There are two types of polymorphism in Java: compile-time polymorphism and runtime polymorphism. We can perform polymorphism in java by method overloading and method overriding . If you overload a static method in Java, it is the example of compile time polymorphism.

Sizin İçin Seçtik  What is polymorphism give an example?

Leave a Reply

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