Question: QUESTION 3 Consider the following class definition public class Rectangle private double length; private double width: private double area; private double perimeter, public Rectangle (
QUESTION 3 Consider the following class definition public class Rectangle private double length; private double width: private double area; private double perimeter, public Rectangle ( length = 0; width = 0; public Rectangle(double double w) length = width = w: public void set[double double w 1 length = width=w public void printo System.out.println(length + width public double area return length*width: > public double perimeter return 2. length 2 width: > Suppose that you have the following declaration Rectangle bigRect = new Rectangle(10,4% Which of the following set of statements are valid in Java? (0) bigRectarea bigRect perimetert: bigRect.print: bigRectarea-bigRectarea bigRect.perimeter big Rect perimeter bigRect.printo: A Only On Only Hata O O. Note of the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
