Skip to content

Instantly share code, notes, and snippets.

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