in reply to Inheritance and module cross dependencies
If there is only a small number of minor differences between the classes, my preferred way would be to add a bit-vector attribute to the "Teacher" class that lists capabilities like "CAN_RESEARCH".if (ref($lecturer) eq "LECTURER"){ # You can do $lecutrerer->get_research(); }else{ # This dude can't research ... }
..."I don't know what the facts are but somebody's certainly going to sit down with him and find out what he knows that they may not know, and make sure he knows what they know that he may not know, and that's a good thing. I think it's a very constructive exchange," --Donald Rumsfeld
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Inheritance and module cross dependencies
by Anonymous Monk on Jan 10, 2005 at 07:31 UTC | |
|
Re^2: Inheritance and module cross dependencies
by prowler (Friar) on Jan 10, 2005 at 05:39 UTC |