What is polymorphism in Java?
A. The ability of an object to take on many forms.
B. The ability of a method to return multiple types of values.
C. The ability of a variable to hold multiple values.
D. None of the above.
Answer:A
What is polymorphism in Java?
A. The ability of an object to take on many forms. B. The ability of a method to return multiple types of values. C. The ability of a variable to hold multiple values. D. None of the above.