Skip to content

Instantly share code, notes, and snippets.

@CarlosHenriqueDv
Created February 9, 2023 00:03
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/837b7b6db2d51a1014223abf9cd87d70 to your computer and use it in GitHub Desktop.
Save CarlosHenriqueDv/837b7b6db2d51a1014223abf9cd87d70 to your computer and use it in GitHub Desktop.
Produto concreto de botão windows
public class BotaoWindows implements Botao {
private final String tipoBotao = "Windows";
@Override
public void click() {
System.out.println("Click " + tipoBotao);
}
@Override
public String tipoBotao() {
return "Tipo Botao: " + this.tipoBotao;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment