This is for an intro to Java class. The simpler the solution, the better. I\'m s
ID: 3634414 • Letter: T
Question
This is for an intro to Java class. The simpler the solution, the better. I'm supposed to be studying this for an upcoming test. The problem says:Design a class named Rectangle to represent a rectangle. The class contains:
-two double data fields named width and height that specify the width and the height of the rectangle. The default values are 1 for both.
-a no-arg constructor that creates a default rectangle.
-a constructor that creates a rectangle with the specified width and height.
-a method named getArea() that returns the area of the rectangle.
-a method named getPerimeter() that returns the peremiter.
it should also display the width, height,area, and perimeter of the rectangle in this order.
I don't even know where to start with this.