Computer Science, asked by Amitkalwa5504, 1 year ago

Can we inherit a final method in Java?

Answers

Answered by Anonymous
0

Inheritance is surely one of the highly useful features in Java. ... A class declared as final cannot be extended while a method declared as final cannot be overridden in its subclasses. A method or a class is declared to be final using the final keyword.

Answered by amalraj142003
0

Final Classes and Methods. Inheritance is surely one of the highly useful features in Java. ... A class declared as final cannot be extended while a method declared as final cannot be overridden in its subclasses. A method or a class is declared to be final using the final keyword.

Similar questions