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