Which feature allows a subclass to provide its own implementation of a method defined in its superclass?
Correct answer
B. Method overriding
15 views
B. Method overriding
15 views
Overriding replaces an inherited method with the same signature and enables runtime polymorphism. Overloading means several methods with the same name but different parameter lists in one class.
Asked in: NTS, PPSC, OCA Java
Not sure why the answer is B? Ask here and get an explanation.