Skip to content

Instantly share code, notes, and snippets.

@mplacona
Created April 20, 2014 11:04
Show Gist options
  • Save mplacona/11111281 to your computer and use it in GitHub Desktop.
Save mplacona/11111281 to your computer and use it in GitHub Desktop.
void main() {
var factory = new ShapeFactory();
var rectangle = factory.getShape('rectangle');
rectangle.draw();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment