Skip to content

Instantly share code, notes, and snippets.

@allomov
Created February 20, 2014 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allomov/9115545 to your computer and use it in GitHub Desktop.
Save allomov/9115545 to your computer and use it in GitHub Desktop.
class Shape {
virtual void paint()=0;
};
class Circle : public Shape {
void paint(){ }
};
class Rectangle : public Shape {
void paint(){ }
};
class Square : public Shape{
void paint(){....}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment