Question: Please refer to the code in the Appendix (pages 2 - 3) to answer the following questions. 1. Write the output for each section of

 Please refer to the code in the Appendix (pages 2 -
3) to answer the following questions. 1. Write the output for each
section of print statements. (10 points 2. Which Rectangle constructor does instance

Please refer to the code in the Appendix (pages 2 - 3) to answer the following questions. 1. Write the output for each section of print statements. (10 points 2. Which Rectangle constructor does instance box1 call? Why? What concept does this demonstrate? (10 points) . Which Rectangle constructor does instance box2 call? Why? What concept does this demonstrate? (10 points) Which Rectangle constructor does instance box3 call? Why? What concept does this demonstrate? (10 points) 5. What is the connection between box1 and box4? What happens (memory wise) when both box1 and box 4 are declared null? (20 points) 6. In the Test2 class, there are two variables named a. What is the difference between the two variables? What concept does the output of the last three print statements demonstrate? Explain. (20 points) 7. In the Rectangle class, explain the implementation of the Rectangle(int I) constructor. (10 points) 8. In the Rectangle class, explain the implementation of the Rectangle(Rectangle other) constructor. (10 points)

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 Databases Questions!