![]() |
![]() |
![]() |
![]() |
![]() |
|
Write side, base, and end for the Box class
that you defined to solve the problem posed in Segment 629. The
side method is to answer a Rectangle instance with dimensions
equal to the width and height of the box; base is to answer a
rectangle with dimensions equal to the width and depth; and end is
to answer a rectangle with dimensions equal to the depth and height.