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.

4
  • Initially I was going to ask "Should every class be declared either final or abstract?" Commented Feb 8, 2009 at 20:38
  • 1
    I'd definitely say no to that one. :) Commented Feb 8, 2009 at 20:44
  • Can you make an argument against it? Commented Feb 8, 2009 at 20:46
  • Sure. Let's say your DAL or ORM has a Row class that the application developer can extend to layer on table-specific functionality, but need not -- Row by itself will work fine for general purposes. Declaring it abstract and forcing subclassing is just annoying and pedantic. Commented Feb 8, 2009 at 20:53

lang-php