| 11 | } |
| 12 | |
| 13 | int main() |
| 14 | { |
| 15 | Box box {20.0, 30.0, 40.0}; // A base box |
| 16 | ToughPack hardcase {20.0, 30.0, 40.0}; // A derived box - same size |
| 17 | Carton carton {20.0, 30.0, 40.0, "Plastic"}; // A different derived box |
| 18 | |
| 19 | showVolume(box); // Display volume of base box |
| 20 | showVolume(hardcase); // Display volume of derived box |
| 21 | showVolume(carton); // Display volume of derived box |
| 22 | } |
nothing calls this directly
no test coverage detected