shape.h

00001 #ifndef SHAPE_H_
00002 #define SHAPE_H_
00003 
00004 #include <iostream>
00005 #include "point.h"
00006 
00016 class Shape
00017 {
00018         protected:
00019                 
00021                 Point center;
00022         
00023         public:
00024                 
00031                 Shape(int x,int y);
00032                 
00038                 Shape(Point c);
00039                 
00047                 Point getCenter() const;
00048                 
00056                 void setCenter(Point c);
00057                 
00065                 virtual std::string getType() const = 0;
00066                 
00075                 virtual double getArea() const = 0;
00076 };
00077 
00078 #endif

Generated on Fri Dec 23 11:21:39 2011 by  doxygen 1.5.2