Problem Statement
Which concept allows a subclass to redefine a method already defined in its superclass?
Explanation
Method overriding lets a subclass modify or extend the behavior of a method inherited from the superclass. It supports runtime polymorphism. The method signatures must match exactly.
Code Solution
SolutionRead Only
class Parent { void show(){} }
class Child extends Parent { void show(){ System.out.println("Child"); } }