Attachment 'Prenotazione.java'
Download 1 public class Prenotazione {
2
3 private String cognome;
4 private int numeroPersone;
5
6 public Prenotazione(String c, int n)
7 {
8 cognome=c;
9 numeroPersone=n;
10 }
11
12 public String getCognome() {
13 return cognome;
14 }
15 public void setCognome(String cognome) {
16 cognome = cognome;
17 }
18 public int getNumeroPersone() {
19 return numeroPersone;
20 }
21 public void setNumeroPersone(int numeroPersone) {
22 this.numeroPersone = numeroPersone;
23 }
24
25
26
27 }
Attached Files
You are not allowed to attach a file to this page.