Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    One particular use I can think of is legacy classes that are being depreciated. In this case "final" is used to stop further propagation of that code. Commented Feb 8, 2009 at 21:02
  • Ah, ok... your original question didn't say anything about using "final" for methods, which comes in handy much more often than for entire classes. Commented Feb 8, 2009 at 21:25

lang-php