class Shape { virtual void paint()=0; }; class Circle : public Shape { void paint(){ } }; class Rectangle : public Shape { void paint(){ } }; class Square : public Shape{ void paint(){....} };