-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrdinateur_Personnalises.java
More file actions
32 lines (25 loc) · 986 Bytes
/
Ordinateur_Personnalises.java
File metadata and controls
32 lines (25 loc) · 986 Bytes
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
27
28
29
30
31
32
import java.util.Vector;
import java.util.Date;
public class Ordinateur_Personnalises extends Commande {
// Attributs intrinsèques
public String nom;
public int id;
public float frais_de_montage;
public boolean cle_windows;
// Vecteur pour les composants
public Vector<Composants> composants = new Vector<>();
public Ordinateur_Personnalises(String nom, int id, float frais_de_montage, int id_commande, Date date_de_livraison, Date date_commande, Client client, Livreur livreur, boolean cle_windows) {
super(id_commande, date_de_livraison, date_commande, client, livreur);
this.nom = nom;
this.id = id;
this.frais_de_montage = frais_de_montage;
this.cle_windows = cle_windows;
}
// Methodes pour gerer les composants
public void addComposant(Composants composant) {
this.composants.add(composant);
}
public Vector<Composants> getComposants() {
return composants;
}
}