1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| public class Revue {
//________________________________________________________________________________________
//Attributs Privés
private String code;
private String titre;
private Double prixAbonnementPublic;
private List lesAbonnements; //collection d'abonnements
//________________________________________________________________________________________
//Constructeur de la Clase Revue
public Revue (String unCode, String unTitre, Double unPrixAbonnementPublic) {
this.code = unCode;
this.titre = unTitre;
this.prixAbonnementPublic = unPrixAbonnementPublic;
this.lesAbonnements = new Vector();
}
public Revue (String unCode, String unTitre, int monPrix) {
this.code = unCode;
this.titre = unTitre;
this.prixAbonnementPublic = monPrix.00;
} |
Partager