#ifndef HOUSE_H #define HOUSE_H #include "common.h" #include "Land.h" #include "Element.h" BEGIN_ESTATE_NAMESPACE class House : public Land, public Element { public: House(int price, int house_size, int lot_size, bool water=false); House(const House& old); ~House(); virtual void print() { cout << toString(); } virtual int compare(const Element& other) { return ( _price - dynamic_cast(other)._price ); } virtual float getValue() { return (_price/_house_size); } string toString(); virtual string toString2() { return toString(); } private: int _house_size; }; END_ESTATE_NAMESPACE #endif