Programming, Scala, Data Type, Abstraction, Introduction.
are working on a math project and you want to provide support for operations on rational numbers. You would need to define a set of functions (add, subtract, divide, multiply, etc) and provide variables representing your numerators and denominators respectively. So we start by creating a class that