/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Factura;

/**
 *
 * @author felix
 */
public class Cliente {
    private String nombre;
    private String domicilio;
    private String ciudad;
    private String estado;
    private String RFC;
    private int CP;
    
    public Cliente(String unNombre, String unDomicilio, 
            String unaCiudad, String unEstado, String unRFC,
            int unCP) {
        nombre = unNombre;
        domicilio = unDomicilio;
        ciudad = unaCiudad;
        estado = unEstado;
        RFC = unRFC;
        CP = unCP;
    }
    
    public String formato() {
        return nombre + "\n" + domicilio + "\n" +
                RFC + "\n" +
                ciudad + ", " + estado + " " + CP;
    }
    
    @Override
    public String toString(){
        return formato();
    }
}
