Last active
July 21, 2016 13:29
-
-
Save marciojrtorres/279c6b7d55d1076851270d13785c930c to your computer and use it in GitHub Desktop.
POO com Honra: exemplo de um códigos de exemplo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Os códigos aparecerão em fonte de largura fixa, | |
* como neste bloco. | |
*/ | |
public class UmaClasse { | |
private String umAtributo; | |
public String umMetodo(int umParametro) { | |
int umRetorno = umParametro * 2; | |
return this.umAtributo + umRetorno; | |
} | |
public void codigoOmitidoNoLivro(String outroParametro) { | |
this.umAtributo = outroParametro; | |
} | |
} | |
// https://gist.github.com/marciojrtorres/279c6b7d55d1076851270d13785c930c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment