-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAbonne.java
More file actions
36 lines (27 loc) · 724 Bytes
/
Abonne.java
File metadata and controls
36 lines (27 loc) · 724 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
33
34
35
36
package com.example;
public class Abonne extends Personne{
private int numAbonnement;
private Ouvrage OuvragePris;
public Abonne(int numId, String nom, int numAbonnement, Ouvrage OuvragePris) {
super(numId, nom);
this.numAbonnement = numAbonnement;
this.OuvragePris = OuvragePris;
}
@Override
public String toString() {
return "{" +
" numAbonnement='" + this.numAbonnement + "'" +
", OuvragePris='" + this.OuvragePris + "'" +
", personne=" + super.toString() +
"}";
}
public int getNumAbonnement() {
return this.numAbonnement;
}
public Ouvrage getOuvragePris() {
return this.OuvragePris;
}
public void setOuvragePris(Ouvrage OuvragePris) {
this.OuvragePris = OuvragePris;
}
}