Given the following class, which is the correct function header for the display function?
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. friend void display(ostream& out, const Rational& value)
b. void display(ostream& out, const Rational& value)
c. void Rational::display(ostream& out, const Rational& value)
d. friend void Rational::display(ostream& out, const Rational& value)
b. void display(ostream& out, const Rational& value)
You might also like to view...
The third prong on a typical electric plug is known as a(n) ________
Fill in the blank(s) with correct word
You can accept or reject changes without your own actions being recorded as a change by selecting No One but Me
Indicate whether the statement is true or false