A constructor that initializes all three member variables
| 18 | |
| 19 | // A constructor that initializes all three member variables |
| 20 | Box::Box(double length, double width, double height) |
| 21 | : m_length{length}, m_width{width}, m_height{height} |
| 22 | { |
| 23 | std::cout << "Box constructor 1 called." << std::endl; |
| 24 | } |
| 25 | |
| 26 | // This second constructor forwards to the first one to initialize all members. |
| 27 | // Note that you do not repeat the explicit keyword here! |
nothing calls this directly
no outgoing calls
no test coverage detected