Advertisement
alberane

Classe Pessoal - TP3 - Mestrado Ufla 2018

Sep 9th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1. package teste;
  2.  
  3. public class Pessoa {
  4.  
  5.     private String id;
  6.     private String cpf;
  7.     private String nome;
  8.     private String rua;
  9.     private String numero;
  10.     private String cidade;
  11.     private String bairro;
  12.     private String estado;
  13.     private String pais;
  14.     private String estado2;
  15.     private String pais2;
  16.  
  17.     public void addPessoa() {
  18.         System.out.println(this.id + this.nome + this.cpf);
  19.         System.out.println(this.rua + this.numero + this.bairro + this.cidade);
  20.     }
  21.  
  22.     public void addEndereco() {
  23.         System.out.println(this.rua + this.numero + this.bairro + this.cidade);
  24.     }
  25.  
  26.     public void addEstadoPais() {
  27.         System.out.println(this.estado + this.pais);
  28.     }
  29.  
  30.     public void addEstadoPais2() {
  31.         System.out.println(this.estado2 + this.pais2);
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement