Consider the following class: public class Fraction{ private intnumerator; private int denominator; private static char slash = ‘/’, } Write a program to instantiatean object of the Fraction class to test the class.. Add aconstructor(s), set and get methods to the Fraction classappropriately. Using the Serializable Interface, instantiate andwrite three Fraction objects to a file called “SerialF.dat.” A loopmust be used when creating and writing the three objects to thefile. You can select the values you wish to use for the denominatorand numerator. Directions • Create the Fraction Class. o Add aconstructor(s), set and get methods to the Fraction classappropriately. o Ensure
PayPal Gateway not configured
PayPal Gateway not configured