package calcul; public class CalculetteImpl extends CalculettePOA { private double etat = 0; public CalculetteImpl() { super(); } public void initialiser() { etat = 0; } public double addition(double n) { etat += n; return etat; } public double soustraction(double n) { etat -= n; return etat; } public double multiplication(double n) { etat *= n; return etat; } public double division(double n) throws DivParZero { if(n != 0){ etat /= n; return etat; }else throw new DivParZero(); } public double etat() { return etat; } }