public class Rectangle { // Instance variables, width and height // Default constructor public MyRectangle() { // code here } // Constructor with parameters public MyRectangle(double newWidth, double newHeight) { // code here } // Method that returns the area of the rectangle public double getArea() { // code here } // Method that returns the perimeter of the rectangle public double getPerimeter() { // code here } }