Question: Imagine that you are going to write a program to play card games. Consider a design with a Card class and 52 subclasses, one for
Imagine that you are going to write a program to play card games. Consider a design with a Card class and 52 subclasses, one for each of the unique playing cards (for example, NineOfSpades and JackOfClubs). Is this a good design? If so, why? If not, why not, and what might be a better design?
Step by Step Solution
3.46 Rating (162 Votes )
There are 3 Steps involved in it
Having each of the 52 playing cards in its own c... View full answer
Get step-by-step solutions from verified subject matter experts
