I’m doing some reading and need some clarification on final classes and methods. My understanding is that declaring a class as final prevents that class from being extended. As such is it necessary to declare methods within a final class as final? It seems to me that if the class cannot be extended it is not necessary to declare the methods final.
I’m doing some reading and need some clarification on final classes and methods. My
Share
If the class is declared as final, it is not necessary to declare the methods as final, because the class already cannot be extended.