allomov
2/20/2014 - 2:58 PM

shapes.cpp

class Shape {
  virtual void paint()=0;  
};

class Circle : public Shape {
  void paint(){  }
};

class Rectangle : public Shape {
  void paint(){ }
};

class Square : public Shape{
  void paint(){....}
};