Question: Write a C++ program to test a class called RATIONAL with private members: Num, Den & with public functions as follows Constructor to initialize
Write a C++ program to test a class called" RATIONAL " with private members: Num, Den & with public functions as follows Constructor to initialize the private members with (Num -0, Den -1) Setters & Getters if necessary overload the+,*, ,/to perform the following equations:- Addition a c ad +bc b dbd Multiplication a C ac b d bd Subtraction Division a c ad bc b d a,c ad bd b'd bc
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
