r/javahelp • u/[deleted] • Aug 24 '20
Can somebody explain to me a final method?
Was messing around in an IDE and tried to declare a method as final and for some reason it worked, so I'd like someone to explain to me what it is please!
0
Upvotes
1
12
u/[deleted] Aug 24 '20
When you inherit a class, the methods declared final cannot be overridden