46 lines
927 B
Java
46 lines
927 B
Java
/*
|
|
* 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
|
|
}
|
|
}
|
|
|
|
|