CS计算机代考程序代写 public class Rectangle extends Shape {

public class Rectangle extends Shape {

private double width;
private double height;

public Rectangle() {
super();
width = 0;
height = 0;
}

public Rectangle(double x, double y, double width, double height) {
super(x, y);
this.width = width;
this.height = height;
}

public double getWidth() {
return width;
}

public double getHeight() {
return height;
}

}