Top News

How do we implement method overriding in Java?

 

To override a method, we just provide a new implementation of a method with same name in subclass. So there will be at least two implementations of the method with same name. One implementation is in parent class. And another implementation is in child class.


Post a Comment

Previous Post Next Post