Aggiunta classe Film
This commit is contained in:
parent
532345066a
commit
7b8f8d8f27
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue