Tom Sawyer <transami / transami.net> writes:

> so i have a question realted to class inheritence: when a class inherits
> from a superclass, is it good coding practice for the superclass to use
> the childs instance variables? or should they be passed? for example:

If a superclass accesses its child's instance variables, then by
definition all children must have that variable (or the thing will
break). Therefore the variable should be factored into the parent
class.

Dave