Multiple Choice
How many members data and functions) does the following class have?
Class Rational
{
Public:
Rational) ;
Rationalint numer, int denom) ;
Rationalint whole) ;
Int getNumerator) ;
Int getDenominator) ;
Friend void displayostream& out, const Rational& value) ;
Private:
Int numerator;
Int denominator;
};
A) 2
B) 6
C) 5
D) 7
E) 8
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: Since accessor functions in a class do
Q2: You cannot create new operators such as
Q4: If c is a character variable that
Q5: What member functions do you need to
Q6: Putting the keyword const after the function
Q7: All operators can be overloaded.
Q8: If a given task being performed by
Q9: How many parameters are there in a
Q10: If we have a full selection of
Q11: Why are the extraction and insertion operators