// @topic T52035 11/27/2012 -- Inheritance and Polymorphism
// @brief class Rectangle inherits from Shape

#ifndef _RECTANGLE_H_INCLUDED_
#define _RECTANGLE_H_INCLUDED_

class Rectangle : public Shape {
    int m_height;
    int m_width;

public:
    // constructors
    Rectangle( int height, int width ) //: Shape( SHAPE_TYPE_RECTANGLE )
        :
        m_height( height ),
        m_width( width )
    {
    }

    // operations
    virtual void draw() {
        std::cout << area() << " ";
        std::cout << "rectangle\n";
    }// draw

    virtual double area() {
        return m_height * m_width;
    }//area

};//class Circle

#endif // _RECTANGLE_H_INCLUDED_