Question: 4) Complete the following Rectangle class and use it to answer quest public class Rectangle { private double length; private double width; public Rectangle() {

4) Complete the following Rectangle class and use it to answer quest public class Rectangle \{ private double length; private double width; public Rectangle() \{ length =1.0; width =1.0; \} public Rectangle (double 1, double w) \{ length =1; width = w; \} public double getLength() \& ; \} public double getWidth() \& ; \} public double getArea() \& return \} public double getperimeter () 1 return \} public void setLength (double len) \& ; \} public void setWidth (double wid) \{ ; \} \}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
