I'm having a Design issue here. I want to have an object Person (or an interface, depending) be a base class. I then want to allow another class, Dealer, to extend or implement Person. I also want a class called Salesman to extend or implement Person. For some reason, I can't think of a way that would allow a Person to be both a Dealer and a Salesman at the same time. Any comments/help on this would be greatly appreciated.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Joined: Mar 31, 2003
yes, A Person can exist by itself. A Dealer inherits all Person methods as does a Salesman. A Person could be a Salesman and a Dealer at the same time. But it could also just be a Salesman, or just a Dealer.