Programming, Scala, Data Type, Abstraction, Introduction.
will, in the end, suit the needs of our operations while encapsulating away some of the most intricate parts of it. class Rational(x: Int, y: Int) { def numerator :Int = x def denominator :Int = y } You could then create objects that have a numerator and denominator member and then manipulate those