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

You might also like to view...

The item marked ____ in the accompanying figure is a comment tag.

A. 1 B. 3 C. 4 D. none of the above

Computer Science & Information Technology

Explain why it is important to define data types in Access.

What will be an ideal response?

Computer Science & Information Technology