Skip to content

Instantly share code, notes, and snippets.

@helmutkian
Created August 1, 2012 00:03
Show Gist options
  • Save helmutkian/3221878 to your computer and use it in GitHub Desktop.
Save helmutkian/3221878 to your computer and use it in GitHub Desktop.
Factory Pattern in Common Lisp
public interface TextBoxFactory {
    
    public TextBox TextBox makeTextBox();
}


public abstract class TextBox {
    
    protected String text;
    
    public abstract String display();

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment