Question: =+1. With reference to Figure 4.8, which methods correspond to the following message sends (in the order given)? Choose only one option. tr.height(); sh.perimeter(); sq.height();
=+1. With reference to Figure 4.8, which methods correspond to the following message sends (in the order given)? Choose only one option. tr.height(); sh.perimeter(); sq.height(); sq.perimeter(); sh.height(); tr.perimeter();
(a) 3, 1, none (error), 4, none (error), 5
(b) 3, 5, none (error), 4, 3, 5
(c) 3, 1, none (error), 4, 3, 5
(d) 3, 5, none (error), 4, none (error), 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
