Advertisement
Guest User

Elton

a guest
Feb 11th, 2010
1,824
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. public class Pessoa {
  2.     private String nome;
  3.     private String estado;
  4.     private String cidade;
  5.     public Pessoa(String nome, String cidade, String estado){
  6.         setNome(nome);
  7.         setCidade(cidade);
  8.         setEstado(estado);
  9.     }
  10.     public String getNome() {
  11.         return nome;
  12.     }
  13.     public void setNome(String nome) {
  14.         this.nome = nome;
  15.     }
  16.     public String getEstado() {
  17.         return estado;
  18.     }
  19.     public void setEstado(String estado) {
  20.         this.estado = estado;
  21.     }
  22.     public String getCidade() {
  23.         return cidade;
  24.     }
  25.     public void setCidade(String cidade) {
  26.         this.cidade = cidade;
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement