exo6: add the full implementation.
[Project_POO.git] / exo6 / ParentheseExp.java
diff --git a/exo6/ParentheseExp.java b/exo6/ParentheseExp.java
new file mode 100644 (file)
index 0000000..a4d9d7e
--- /dev/null
@@ -0,0 +1,12 @@
+
+class ParentheseExp extends Facteur {
+    private Expression exp;
+
+    ParentheseExp(Expression e) {
+            exp = e;
+    }
+
+    public double evaluer() throws NotDigitException {
+        return exp.evaluer();
+    }
+}