Consider the following class:
public class Fraction{
private int numerator;
private int denominator;
private static char slash = ‘/’,
}
Write a program to instantiate an object of the Fraction classto test the class.. Add a constructor(s), set and get methods tothe Fraction class appropriately. Using the Serializable Interface,instantiate and write three Fraction objects to a file called“SerialF.dat.” A loop must be used when creating and writing thethree objects to the file. You can select the values you wish touse for the denominator and numerator.
Directions
Create the Fraction Class.
Add a constructor(s), set and get methods to the Fraction classappropriately.
Ensure the class is Serializable.
Use a loop to create
PayPal Gateway not configured
PayPal Gateway not configured