Hey community i was assigned a home work asking me to create a method to add two instances of a fraction object and have the output be a new instance .
here is the prompt i was given
"Provide a method add that receives a second fraction as an argument, and returns a new fraction which is the sum of fractions. Example: Fraction r3 = r1.add( r2 );"
could someone please explain how this is done ?