Core Java

What is method Overriding?

Like 1

Like

1 comments

Hello,

 

In Java, method overriding occurs when a subclass (child class) has the same method as the parent class. In other words, method overriding occurs when a subclass provides a particular implementation of a method declared by one of its parent classes.

We have also found some articles on this matter, feel free to review them:

https://www.javatpoint.com/method-overriding-in-java

https://www.geeksforgeeks.org/overriding-in-java/

 

Best regards,

Yuliya

Show all comments