public int CompareTo(object other) { if (other == null) { return(1); } Bruch that = other as Bruch; if (this < that) { return(-1); } else if (this > that) { return(1); } return(0); }
/* * prints a Bruch output on the console * @param output: Bruch */ public void printBruch(Bruch output) { Console.WriteLine(output); }
/* * reads an Bruch input from an user on the console * @return input: Bruch */ public Bruch readBruch() { Bruch input = null; return(input); }
public void multiplizieren(Bruch bruch) { }
public void dividieren(Bruch bruch) { }
public void subtrahieren(Bruch bruch) { }
//Funktionen public void addieren(Bruch bruch) { }