Question: Write a complete and correct Java class to hold data related to a fraction. It should hold the numerator and the denominator and provide a
Write a complete and correct Java class to hold data related to a fraction. It should hold the numerator and the denominator and provide a number of useful methods. For example, it should have a method called getVal() that returns a double equal to the value of the fraction. It should have to a toString() method, as well. Be sure and use all of the good code writing practicees.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
