exo6: add the full implementation.
[Project_POO.git] / exo6 / Opplus.java
index 0bd4bfa408a6c971c177e0264b3666fab6f6b54d..185e66b2174665b774dd3c78bd5a9bf6719171c0 100644 (file)
@@ -1,7 +1,11 @@
 
 class Opplus extends Opadd {
 
-    public double evaluer() {
-        return 0.0;
+    Opplus(Terme g, Expression d) {
+        super(g, d);
+    }
+
+    public double evaluer() throws NotDigitException {
+        return gauche.evaluer() + droite.evaluer();
     }
 }