This commit is contained in:
2025-09-18 01:02:03 +02:00
commit 8abb94290b
7 changed files with 295 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
/*
* 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;
/**
*
* @author dthev
*/
public class Livre {
private String titre;
private double prixHT;
private boolean emprunte;
public Livre(String titre, double prixHT) {
this.titre = titre;
this.prixHT = prixHT;
this.emprunte = false;
}
public String getTitre() {
return titre;
}
public double getPrixHT() {
return prixHT;
}
public boolean isEmprunte() {
return emprunte;
}
public void setEmprunte(boolean emprunte) {
this.emprunte = emprunte;
}
// TODO: calculer le prix TTC avec une TVA de 5.5%
public double getPrixTTC() {
return 0.0; // à compléter
}
}