|
Could this program have been written without using an abstract class? A good answer might be:Yes. | |
Advantage of Abstract Classes
Here is a sample run of the program: Dear Santa, Season's Greetings! The advantage of using an abstract class is that you can group several related classes together as siblings, even though none is the parent of the others. Grouping classes together is important in keeping a program organized and understandable. The picture shows this program after its object has been constructed. It would be nice to deal some other cards. Here is a skeleton for the Birthday class:
| |
QUESTION 7:Fill in the missing parts. Click Here after you have answered the question |