ah, i see. in this example that i cooked up to demonstrate the problem it is not used. in my real program, it is.
the base class has login and password info that all the subclasses use. the base class also has a login method.
the effect i was trying to achieve was to only have to pass the data (login/password) once and have it stored in a core object from which all the derived objects inherited not only its methods, but object data. does that violate OO principles?
In reply to Re: Re (tilly) 3: Inheriting object data
by archon
in thread Inheriting object data
by archon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |