summaryrefslogtreecommitdiff
path: root/sem_4/java/eclipse-workspace/Assoc et collec/src/Exemplaire.java
blob: 2316958da59f5759b095f257cc373b9a3f23557d (plain)
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

public class Exemplaire {
	private Notice fiche;
	private Abonnes emprunteur;
	protected void emprunter(Abonnes a) {
		this.setEmprunteur(a);
		
	}
	protected Notice getFiche() {
		return fiche;
	}
	protected void setFiche(Notice fiche) {
		this.fiche = fiche;
	}
	public void rendre() {
		if (emprunteur != null) {
			this.setEmprunteur(null);
			fiche.readdEx(this);
		}
	}
	public Abonnes getEmprunteur() {
		return emprunteur;
	}
	public void setEmprunteur(Abonnes emprunteur) {
		this.emprunteur = emprunteur;
	}
}