Aggiunta classe Film

This commit is contained in:
Mr SL1D3R 2025-03-04 08:38:59 +01:00
parent 532345066a
commit 7b8f8d8f27
1 changed files with 39 additions and 0 deletions

View File

@ -1,2 +1,41 @@
/*
* Classe che va a rappresentare un film
*
* @autor Ciausu Angelo
* @version 1.0
*/
public class Film {
private String titolo;
private int durata;
private String sala;
private int posti;
public Film(String titolo, int durata, String sala, int posti) {
this.titolo = titolo;
this.durata = durata;
this.sala = sala;
this.posti = posti;
}
public String getTitolo() {
return titolo;
}
public int getDurata() {
return durata;
}
public String getSala() {
return sala;
}
public int getPosti() {
return posti;
}
public void setPosti(int posti) {
this.posti = posti;
}
}