Skip to content
loading...

re: Why it is not possible to extend a final class in Java? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Thanks, @bertilmuth . As you said final keyword in java means "can‘t be modified", but still we should be allowed to extend it from another class ...
 

As Kasey Speakman has pointed out, you can extend final classes by composition. Just not inheritance. A class can offer all visible methods of the final class, plus further methods.

code of conduct - report abuse