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 basic operations code.
[Project_POO.git]
/
exo6
/
Opplus.java
diff --git
a/exo6/Opplus.java
b/exo6/Opplus.java
index 0bd4bfa408a6c971c177e0264b3666fab6f6b54d..95b200b1c158056301f9a99315a46533899ef0e0 100644
(file)
--- a/
exo6/Opplus.java
+++ b/
exo6/Opplus.java
@@
-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()
;
}
}