✏️ Explanatory Question

What is method overriding?

👁 3 Views
📘 Detailed Answer
🟢 Easy
3
Total Views
10
Related Qs
0%
Progress
💡

Answer with Explanation

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