hi i'm taking compsci and I need someone to give me some examples of these classes, thanks!

You will have to write a class to represent one of the following items. Note
that each class must a proper constructor even though the constructor is not
explicitly named.

1. a Fraction that has a numerator and a denominator. The class should
have methods that can: (1) add and subtract two Fractions together and
return the resulting Fraction, (2) create a duplicate of itself and return
the duplicate, (3) see if another Fraction is equivalent to itself and return
True or False appropriately and (4) reduce itself to the lowest equivalent
Fraction.

2. a Student that has a name, point and course count. The class should
have methods that can: (1) add a grade to the GPA and GPA should be
calculated and returned appropriately, (2) create duplicate of itself and
return that duplicate, and (3) see if another student has the same name
and GPA as itself and return True or False appropriately.

3. a Clock that has a minute and hour hand. The class should have methods
that can: (1) add and subtract minutes appropriately, (2) return an ap-
propriate textual representation of itself (either 12 or 24 hour clock), (3)
duplicate itself and return that duplicate, and (4) see if another clock is
of equal time as itself and return True or False appropriately.
3

We don't know the classes that are offered at your school, and the descriptions for each. Classes vary slightly from college to college. To answer these, you should get a course catalog and read all the descriptions for the math courses.