blob: c0f4135736b7c85c3aa9ff1c0c15033552bb721c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
public class Mineur extends Abonnes{
public Mineur(String nom, String ad, Public cate, int numabo) {
super(nom, ad, cate, numabo);
}
public void emprunter (Notice n) {
boolean empruntgranted = false;
for (int i =0; i < n.getPublicCible().size(); i ++) {
if (n.getPublicCible().get(i)==Public.enfant) {
empruntgranted = true;
}
if (n.getPublicCible().get(i)==Public.junior) {
empruntgranted = true;
}
}
if (empruntgranted) {
super.emprunter(n);
}
}
}
|