What is method overriding in Java?
-
A
Defining a method with the same name but different parameters in the same class
-
B
Providing a new implementation of a parent class method in a subclass
-
C
Calling a parent method using the super keyword
-
D
Hiding a static method from a parent class