3 import java
.io
.Serializable
;
7 * Applications reparties
11 * Classe regroupant les informations d'une reservation
16 public class Infos
implements Serializable
{
18 private static final long serialVersionUID
= -6199402168457446943L;
20 private String nomClient
;
21 private String nomHotel
;
23 private int nbchambres
;
32 public Infos(String client
, String hotel
, String date
, int nb
) {
33 this.nomClient
= client
;
34 this.nomHotel
= hotel
;
39 public String
getNomClient() {
40 return this.nomClient
;
43 public void setNomClient(String nom
) {
47 public String
getNomHotel() {
51 public void setNomHotel(String nom
) {
55 public String
getDate() {
59 public void setDate(String d
) {
63 public int getNbChambres() {
64 return this.nbchambres
;
67 public void setNbChambres(int nb
) {
71 public String
toString() {
73 str
= str
+ this.nomClient
+ " " + this.nomHotel
+ " " + this.date
+ " " + this.nbchambres
;