Commit ffba0ea3 by Pedro J Sanchez

Se añade la clase Registro

parent 3cf792ed
/*
* 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 es.uja.cursojee.simulaeventos;
/**
*
* @author pedroj
*/
public class Registro {
private final Usuario usuario;
private final Evento evento;
public Registro(Usuario usuario, Evento evento) {
this.usuario = usuario;
this.evento = evento;
}
public Usuario getUsuario() {
return usuario;
}
public Evento getEvento() {
return evento;
}
@Override
public String toString() {
return "Registro{" + "usuario=" + usuario + ", evento=" + evento + '}';
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment