Created
August 5, 2013 23:29
-
-
Save marciojrtorres/6160600 to your computer and use it in GitHub Desktop.
Padrão JavaBean, uma classe de dados com getters e setters
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
class Endereco { | |
private String rua; | |
private int numero; | |
private boolean ativo; | |
public String getRua() { return rua; } | |
public void setRua(String rua) { this.rua = rua; } | |
public int getNumero() { return numero; } | |
public void setNumero(int numero) { this.numero = numero; } | |
public boolean isAtivo() { return ativo; } | |
public void setAtivo(boolean ativo) { this.ativo = ativo; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment