public Operation Clone() { Operation op; if (this is Addition) { op = new Addition(); } else if (this is Soustraction) { op = new Soustraction(); } else if (this is Multiplication) { op = new Multiplication(); } else if (this is Division) { op = new Division(); } else { op = new sqrt(); } op.setOperandeA(this.operandeA); op.setOperandeB(this.operandeB); return(op); }
public Operation Clone() { Operation op; if (this is Addition) { op = new Addition(); } else if (this is Soustraction) { op = new Soustraction(); }else if (this is Multiplication) { op = new Multiplication(); } else if (this is Division) { op = new Division(); } else { op = new sqrt(); } op.setOperandeA(this.operandeA); op.setOperandeB(this.operandeB); return op; }