repositories
/
Project_POO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
exo6/ParentheseExp.java
@@ -0,0
+1,12
@@
+
+class ParentheseExp extends Facteur {
+ private Expression exp;
+
+ ParentheseExp(Expression e) {
+ exp = e;
+ }
+
+ public double evaluer() throws NotDigitException {
+ return exp.evaluer();
+ }
+}