Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Box.h
- #ifndef BOX_H
- #define BOX_H
- class Box
- {
- private:
- double length {1.0};
- double width {1.0};
- double height {1.0};
- public:
- // Constructors
- Box(double lengthValue, double widthValue, double heightValue);
- Box(); // No-arg constructor
- double volume(); // Function to calculate the volume of a box
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement