So I'm working on a program and I'm not sure how I want to have it designed.
I have two classes a Person class and a Business class. I want to track those are donating to a cause. So a person can be a donor, but they may not be. And a Business can be a donor but they may not be. It would make sense for donor to extend Person and Business but you can't extend multiple classes.
So should I have Person and Business extend donor? But not all people are donors and I usually think of classes that extend as being an "is-a" relationship (Animal class and a Dog class that extends Animal, a Dog is an Animal but not all animals are dogs). So to me this doesn't seem to be ideal.
Any thoughts?














