Search for question
Question

Create a class Fractions with these capabilities: a) Create a constructor that prevents a O denominator-in a fraction, reduces or simplifies fractions that are not in reduced form and avoids

negative denominators. b) Overload the addition, subtraction, multiplication and division operators for this class. c) Overload the relational and equality operators for this class.

Fig: 1

Fig: 2

Fig: 3

Fig: 4