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
feat(examen 09-05-2025): primer apartado resuelto
This commit is contained in:
51
src/tutorialJava/examenes/examen20250509/modelo/Sala.java
Normal file
51
src/tutorialJava/examenes/examen20250509/modelo/Sala.java
Normal file
@@ -0,0 +1,51 @@
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user