Package fr.koor.poo

Class Rational


  • public class Rational
    extends java.lang.Object
    • Method Detail

      • getNumerator

        public int getNumerator()
      • setNumerator

        public void setNumerator​(int numerator)
      • getDenominator

        public int getDenominator()
      • lessThan

        public boolean lessThan​(Rational r2)
      • simplify

        public void simplify()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object