Multiple Choice
Given the following class, which is the correct function header for the display function?
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) friend void displayostream& out, const Rational& value)
B) void displayostream& out, const Rational& value)
C) void Rational::displayostream& out, const Rational& value)
D) friend void Rational::displayostream& out, const Rational& value)
Correct Answer:

Verified
Correct Answer:
Verified
Q35: Write the function declaration for a copy
Q36: Which of the following operators can not
Q37: An operator that expects two parameters is
Q38: An operator that expects only one parameter
Q39: If a given task being performed by
Q41: Which of the following function declarations would
Q42: You may not change the precedence of
Q43: Which of the following statements are true?<br>A)
Q44: What happens when you define a class
Q45: Functions that are constant member functions may