Question: Class definition .Write a class definition called Fraction. This class is used to represent a ratio of two integers. Write appropriate constructors, accessor and mutator
Class definition .Write a class definition called Fraction. This class is used to represent a ratio of two integers. Write appropriate constructors, accessor and mutator functions for the class. Define the default constructor of Fraction class. (Note that, we do not divide any number by zero)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
