Question: s2 private double pubtie length-l width- public void set(double 1, double w) lungth-l width-w public void printO public double area return length width; public void
s2 private double pubtie length-l width- public void set(double 1, double w) lungth-l width-w public void printO public double area return length width; public void perimeterO return 2 * length + 2 width; Suppose that you have the following declaration. Rectangle bigRect-new Rectangle0; Which of the following set of statements are valid in Java? () bigRect.set(10, 5); 0; (ii) bigRectlength bigRect.width -5; a. Only (i) b. Only (i) c. Both () and(i) d. None of these
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
