Question: Task1 Submit the .java source files for the following tasks: Task 1 - Create a Box class with 6 instance variables a 2 each public,

 Task1 Submit the .java source files for the following tasks: Task

Task1 Submit the .java source files for the following tasks: Task 1 - Create a Box class with 6 instance variables a 2 each public, private, protected . Create 3 constructors + the default constructor . Create get and set methods for private and protected instance variables a Give anyr restriction to the set methods (has min length, has min value, etc) - If restrictions met - Set value - If not - output message Task 2 - Create a Box class runner . Ask the user how man).r Box objects to instantiate . In loop 0 Ask user for values of the six instance variables a Pass the values to constructor (no error handling required for now)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!