adplus-dvertising
frame-decoration

Question

What are the advantages of Method Overriding in Java?

a.

A subclass can add extra functionality to the overriding method.

b.

A subclass can call both the overridden method and overriding method.

c.

It supports polymorphism. A superclass reference can be used to call the common method of all subclasses.

d.

All of the above

Posted under Java Programming

Answer: (d).All of the above

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What are the advantages of Method Overriding in Java?