Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free! Click here to download the new Pastebin App for iOS.
Guest

Elton

By: a guest on Feb 11th, 2010  |  syntax: Java  |  size: 0.56 KB  |  hits: 682  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  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. }