mirror of
https://gitlab.com/tutorial-java-rafa-munoz/tutorial-java-2024-25/tutorialjava2024-25.git
synced 2025-11-09 18:03:09 +01:00
52 lines
688 B
Java
52 lines
688 B
Java
package tutorialJava.examenes.examen20250509.modelo;
|
|
|
|
public class Sala {
|
|
private int id;
|
|
private String nombre;
|
|
private String ciudad;
|
|
private int aforo;
|
|
|
|
public Sala() {
|
|
super();
|
|
}
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(int id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getNombre() {
|
|
return nombre;
|
|
}
|
|
|
|
public void setNombre(String nombre) {
|
|
this.nombre = nombre;
|
|
}
|
|
|
|
public String getCiudad() {
|
|
return ciudad;
|
|
}
|
|
|
|
public void setCiudad(String ciudad) {
|
|
this.ciudad = ciudad;
|
|
}
|
|
|
|
public int getAforo() {
|
|
return aforo;
|
|
}
|
|
|
|
public void setAforo(int aforo) {
|
|
this.aforo = aforo;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return nombre;
|
|
}
|
|
|
|
|
|
}
|