How many members (data and functions) does the following class have?How many members (data and functions) does the following class have?
class Rational
{
public:
Rational();
Rational(int numer, int denom);
Rational(int whole);
int getNumerator();
int getDenominator();
friend void display(ostream& out, const Rational& value);
private:
int numerator;
int denominator;
};
a. 2
b. 6
c. 5
d. 7
e. 8
d. 7
Computer Science & Information Technology