Polymorphism Flashcards

1
Q

What is polymorphism in Java?

A

It is a single method that has multiple functions under the same name. A single action gets executed in different ways

Polymorphism in Java is a concept by which we can perform a single action in different ways. Polymorphism is derived from 2 Greek words: poly and morphs. The word “poly” means many and “morphs” means forms. So polymorphism means many forms.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Types of polymorphism

A

compile-time polymorphism and runtime polymorphism.

we can achieve the compile-time/ static polymorphism with the help of Method Overloading.

we can implement or achieve the compile-time/ static polymorphism with the help of Method Overloading.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly