/*
 * @topic T02375 11/29/2012 Polymorphism
 * @brief class Rectangle implements Shape
*/
package interfacedemo;

public class Rectangle implements Shape
{
    int height;
    int width;

    //constructors
    public Rectangle(int height, int width)
    {
        this.height = height;
        this.width = width;
    }

    //operations
    public double getArea()
    {
        return height * width;
    }
    public void draw()
    {
        System.out.println("Rectangle with area " + getArea());
    }
}//class Rectangle