màj pour version initialeV2

This commit is contained in:
2025-09-24 14:14:53 +02:00
parent df7e21cebe
commit 966408e39a
10 changed files with 287 additions and 39 deletions

View File

@@ -0,0 +1,36 @@
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package com.mycompany.bibliotheque.Métier;
import com.mycompany.bibliotheque.Métier.Livre;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author dthev
*/
public class Utilisateur {
private String nom;
private List<Livre> emprunts;
public Utilisateur(String nom) {
this.nom = nom;
this.emprunts = new ArrayList<>();
}
public String getNom() {
return nom;
}
public List<Livre> getEmprunts() {
return emprunts;
}
// TODO: ajouter un emprunt si l'utilisateur a moins de 3 livres
public boolean emprunterLivre(Livre livre) {
return false; // à compléter
}
}