in reply to Re (tilly) 3: Inheriting object data
in thread Inheriting object data
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 5: Inheriting object data
by tilly (Archbishop) on Feb 17, 2001 at 03:33 UTC | |
by archon (Monk) on Feb 17, 2001 at 04:57 UTC | |
by chromatic (Archbishop) on Feb 17, 2001 at 06:07 UTC | |
by eg (Friar) on Feb 17, 2001 at 08:51 UTC | |
by archon (Monk) on Feb 17, 2001 at 09:57 UTC | |
by archon (Monk) on Feb 17, 2001 at 03:47 UTC | |
by geektron (Curate) on Feb 17, 2001 at 03:57 UTC |