| 4 | import carton; // For the Carton class |
| 5 | |
| 6 | int main() |
| 7 | { |
| 8 | // Create three Carton objects |
| 9 | Carton carton1; std::cout << std::endl; |
| 10 | Carton carton2 {4.0, 5.0, 6.0, "PET"}; std::cout << std::endl; |
| 11 | Carton carton3 {2.0, "Folding boxboard"}; std::cout << std::endl; |
| 12 | |
| 13 | std::cout << "carton1 volume is " << carton1.volume() << std::endl; |
| 14 | std::cout << "carton2 volume is " << carton2.volume() << std::endl; |
| 15 | std::cout << "carton3 volume is " << carton3.volume() << std::endl; |
| 16 | } |