A program in C++ that will simulate a small number of the Terran units using inheritance. Please refer to the included large class diagram to see associations and relationships between classes. We will focus on the different types of foot soldiers (or infantry). There will be four different types of infantry: Marine,Firebat, Ghost, and Medic. You will need to have an abstract class (Infantry) that is the superclass (base class). The other four should be subclasses (derived classes) that inherit from infantry.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |