Final (Java): Difference between revisions

Content deleted Content added
Spelling
Ezrarez (talk | contribs)
m spelling
Line 7:
public final class MyFinalClass {...}
 
A '''final [[Method (computer science)|method]]''' cannot be [[Method overriding (programming)|overridden]] by subclasses. This is done for reasons of efficiancyefficiency, since the method can then be placed [[Inline function|inline]] wherever it is called.
 
Example: