so your saying i should pass the variables?

On Sat, 2002-07-06 at 12:15, Dave Thomas wrote:
> 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
> 
-- 
~transami

"They that can give up essential liberty to obtain a little
 temporary safety deserve neither liberty nor safety."
	-- Benjamin Franklin