Question: Finish the constructor for class 'Fraction' so that the instance variables 'nominator' and 'denominator' are set with the parameters of the constructor of the same

Finish the constructor for class 'Fraction' so that the instance variables 'nominator' and 'denominator' are set with the parameters of the constructor of the same name:

Finish the constructor for class 'Fraction' so that the instance variables 'nominator'

Here's my code: https://codeshare.io/2BLM8m

Finish the constructor for class 'Fraction' so that the instance variables 'nominator' and 'denominator' are set with the similarly named parameters of the constructor. Now that there are no 'set...' methods (also called 'setters') anymore, a once created object of class 'Fraction' can no longer change

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!