Fraction constructor

Fraction(
  1. int numerator,
  2. int denominator
)

Constructs a fraction from a numerator and denominator.

Implementation

Fraction(this.numerator, this.denominator) : super(numerator / denominator);