Assume that r1 and r2 are variables that reference Rectangle objects, and the following statements are executed:

Question:

Assume that r1 and r2 are variables that reference Rectangle objects, and the following statements are executed:

R1.setLength(5.0);
R2.setLength(10.0);
R1.setWidth(20.0);
R2.setWidth(15.0);

Fill in the boxes in Figure 6-21 that represent each object’s length and width fields.


Data in Figure 6-21

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: