/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Cajero;

/**
 *
 * @author felix
 */

public class Cliente {
    private int numeroCliente;
    private int pin;
    private Cuenta deposito;
    private Cuenta ahorro;
    
    public Cliente(int unNumero, int unPin) {
        numeroCliente = unNumero;
        pin = unPin;
        deposito = new Cuenta(); 
        ahorro = new Cuenta();
    }    
    
    public boolean match(int unNumero, int unPin) {
        return numeroCliente == unNumero && pin == unPin; 
    }
    
    public Cuenta obtenDeposito() {
        return deposito; 
    }
    
    public Cuenta obtenAhorro() {
        return ahorro; 
    }    
}
