
public class Rectangle implements Shape
{   private int width;
    private int height;
    
    public Rectangle(){
        this(1,1);
    }
    
    public Rectangle(int width, int height){
        this.width = width;
        this.height = height;
    }
    
    public int getWidth(){
        return this.width;
    }
    
    public int getHeight(){
        return this.height;
    }
    
    public double getPerimeter(){
        return 2 * this.height + 2 * this.width;
    }
    
    public double getArea(){
        return width * height;
    }
    
    
    public String toString(){
        return "width: " + this.width + ", height: " + this.height;
    }
    
    
    
    
}
