3 ms·
> 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,
by barrkel 17y ago
> 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.