Your code must be syntax errors free. You are writing two classes, Box and TestBox.

Write a class called Box that contains data (instance) that represents the height, width, and depth of the Box. Also include a Boolean variable called full as an instance data that represents whether the Box is full or not. (10 points).

Define the Box constructor to accept and initialize the height, width, and depth of the Box. (10 points).

Write getter and setter methods for all instance data. Include a toString method that returns a one-line description of the Box. (60 points).

Create a driver class called BoxTest, whose main method instantiates (create) and update three Box object. (20 points).

Get 15% discount on your first order with us
Use the following coupon
FIRST15

Order Now

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp