News for hackers. Stuff that matters.
Re:A Square Is Not A Rectangle by barrkel on Tuesday September 15, 2009 @02:14AM (#823380)
> does that mean that subclasses shouldn't have extra member variable

Not sure what you meant here. Extra members, whether they be properties, fields, methods, types, whatever, should be fine in subclasses. If it was removing members from the superclass, that would be problematic from a subtyping / polymorphic perspective, but adding members makes it more specific.

There are no comments on this comment yet.