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...
What does checking the Update automatically button do in Header and Footer dialog box?
A) Automatically updates edited text within a footer B) Automatically updates the date to always be current C) Updates the header and footer positions if you change slide theme D) Updates the header or footer when the file is saved
The options for a lookup field can be stored in a separate table
Indicate whether the statement is true or false
Functions can be created by using the Function Arguments dialog box or by typing the function in the cell
Indicate whether the statement is true or false
Who should be put in charge of maintaining backups?
A) Someone in Auditing B) Someone in IT C) Someone in Quality Control D) Any of the above