Advertisement
Dannykcw

Ex 12_08 horton's cpp

Feb 4th, 2025 (edited)
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | Source Code | 0 0
  1. // Box.h
  2. #ifndef BOX_H
  3. #define BOX_H
  4. class Box
  5. {
  6. private:
  7. double length {1.0};
  8. double width {1.0};
  9. double height {1.0};
  10. public:
  11. // Constructors
  12. Box(double lengthValue, double widthValue, double heightValue);
  13. Box(); // No-arg constructor
  14. double volume(); // Function to calculate the volume of a box
  15. };
  16. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement