Talk:Empty method over-rides

From CSSEMediaWiki
Revision as of 04:15, 1 August 2009 by Aidan Bebbington (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

I was just looking for people's opinions of this. Obviously empty methods are in general an indication of bad design, but they are tempting. What can be done instead? Are there situations where empty methods are okay? Would it be appropriate if the empty method threw an exception? This would still probably cause us to discard polymorphism, because we would have to check the instance type. What solutions are there that would allow us to maintain polymorphism? --Aidan Bebbington 04:15, 1 August 2009 (UTC)

Personal tools