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
/
Opdiv.java
diff --git
a/exo6/Opdiv.java
b/exo6/Opdiv.java
index 99a38838cbe463b7ef03c50c43b08c176c01aecb..dd85ebc8304ee0cfc077b6320d34c255b0cd7655 100644
(file)
--- a/
exo6/Opdiv.java
+++ b/
exo6/Opdiv.java
@@
-1,7
+1,11
@@
class Opdiv extends Opmul {
- public double evaluer() {
- return 0.0;
+ Opdiv(Facteur g,Terme d) {
+ super(g, d);
+ }
+
+ public double evaluer() throws NotDigitException {
+ return gauche.evaluer() / droite.evaluer();
}
}