Can we inherit a final method in Java?
Answers
Answered by
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
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