0% 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.

Uploaded by

solocheruic
Copyright
© Attribution Non-Commercial (BY-NC)
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% 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.

Uploaded by

solocheruic
Copyright
© Attribution Non-Commercial (BY-NC)
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
You are on page 1/ 1

Write an instance method for addition which returns the resultant object.

[hint: a/b + c/d = (ad + bc)/bd]

You might also like