Q.

What is polymorphism in Java? .

A. It is when a single super class has many subclasses.
B. It is when a single variable is used with several different types of related objects.
C. It is when a program uses several different types of objects, each with its own variable.
D. It is when a class has several methods with the same name but different parameter types.
Answer» D. It is when a class has several methods with the same name but different parameter types.
3.1k
0
Do you find this helpful?
2

View all MCQs in

Java Programming

Discussion

No comments yet