How to setup
I'm working on a program that has a Person class and a Business class. My program should track people and businesses that donate to a cause. So a donor can be either a Person or a Business but not all Persons and Businesses are donors. I still want to have objects for the people and businesses that do not donate so I don't ask them again.
I don't want to do a PersonDonor class and a BusinessDonor class that extend Person and Business respectively since much of the code would be redundant. But since Person wouldn't be an "is-a" relationship with Donor, I don't feel Person and Business should extend Donor.
I'm just not sure the best way to design this. Should I make donor an interface and have Person and Business implement it?