Core Java
15:15 May 30, 2023
What is method Overriding?
Like
1 comments
19:24 May 30, 2023
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