package br.ufpe.cin.pessoas;

import br.ufpe.cin.util.*;
/**
 * Criar a classe Pessoa 
 *     - No pacote br.ufpe.cin.pessoas
 *     - Atributos: nome, cpf e endereco
 *     - MŽtodos: get e set para os atributos
 *     - MŽtodo toString que retorna um String com os dados da pessoa no seguinte formato:
 *            Nome: Sergio Soares
 *            CPF: 1234567
 *            EndereCo: Rua Pontes Quebrada, fone 81-2222-2222
 * 
 * @author Marcel Reboucas
 *
 */
public class Pessoa {
	
	private String nome;
	private String cpf;
	private Endereco endereco;
	
	public Pessoa(String nome, String cpf, Endereco endereco){
		this.nome = nome;
		this.cpf = cpf;
		this.endereco = endereco;
	}
	
	public String getNome(){
		return this.nome;
	}
	
	public void setNome(String nome){
		this.nome = nome;
	}
	
	public String getCPF(){
		return this.cpf;
	}
	
	public void setCPF(String cpf){
		this.cpf = cpf;
	}
	
	public String toString(){
		return  "Nome: "+this.nome +
				"\nCPF: "+this.cpf +
				"\nEndereco: "+this.endereco.getRua() +
				", fone "+this.endereco.getTelefone();
	}

}
