Inheritance
21.What is the best way to call an overridden method from the superclass in Java?
-
A. By using super.methodName() inside the subclass method
-
B. By creating an object of the superclass and calling the method
-
C. By calling this.methodName() in the subclass
-
D. By declaring the method as final
By using super.methodName() inside the subclass method
By using super.methodName() inside the subclass method