exo6: add the basic operations code.
[Project_POO.git] / exo6 / Opplus.java
CommitLineData
dd8febe8
JB
1
2class Opplus extends Opadd {
3
0224c1a7
JB
4 Opplus(Terme g, Expression d) {
5 super(g, d);
6 }
7
c9ca2283 8 public double evaluer() {
0224c1a7 9 return gauche.evaluer() + droite.evaluer();
c9ca2283 10 }
dd8febe8 11}