Skip to content

Instantly share code, notes, and snippets.

@schatekar
Created February 9, 2017 22:29
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 schatekar/71c621d3aa7d11aaec5b8f2b88350c6f to your computer and use it in GitHub Desktop.
Save schatekar/71c621d3aa7d11aaec5b8f2b88350c6f to your computer and use it in GitHub Desktop.
public abstract class Shape
{
void Draw();
}
public class Rectangle : Shape
{
public void Draw()
{
//Draw a rectangle here
}
}
public class Circle : Shape
{
public void Draw()
{
//Draw a circle here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment