Skip to content

Instantly share code, notes, and snippets.

@CarlosHenriqueDv
Created February 9, 2023 00:30
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 CarlosHenriqueDv/d5cc0e2bdc229fc92b4c1c5f580512e8 to your computer and use it in GitHub Desktop.
Save CarlosHenriqueDv/d5cc0e2bdc229fc92b4c1c5f580512e8 to your computer and use it in GitHub Desktop.
public class App {
private Painel painel;
private Botao botao;
public App(GuiFactory guiFactory) {
this.painel = guiFactory.criaPainel();
this.botao = guiFactory.criaBotao();
}
public void configuracaoGuiApplication(){
System.out.println(this.painel.tipoPainel());
System.out.println(this.botao.tipoBotao());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment