An instance method should be written to perform addition on fractional objects that returns the resultant fractional object. The method should calculate the addition of two fractions (a/b + c/d) by finding the numerator (ad + bc) and denominator (bd) and returning the fraction (ad + bc)/bd.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as EHTML, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
38 views
Rich Text Editor File
An instance method should be written to perform addition on fractional objects that returns the resultant fractional object. The method should calculate the addition of two fractions (a/b + c/d) by finding the numerator (ad + bc) and denominator (bd) and returning the fraction (ad + bc)/bd.