What is method overriding?
Short Answer
Views 3
Answer:
Method overriding occurs when a subclass provides its own implementation of a parent class method.
class A { void show() { } } class B extends A { void show() { } }
✅ Happens at runtime
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Fundamentals: Building Strong Foundations, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.