Multiplication.java 437 Bytes
package noyau;

public class Multiplication extends OperationBinaire{
	
	Multiplication(Case g,Case d){
		gauche=g;
		droite=d;
	}
	
	
	public double eval() {
		
		if (!creerCycle(gauche) && !creerCycle(droite))
			return gauche.getValue() * droite.getValue();
		else
			return 0;
	}
	
	
	public String toString(){
		
		return gauche.getId() +" * " + droite.getId() ;
	}
	
	
	
	public String getFormuleDeveloppe(){
		
		return "";
	}

}