Examlex

Solved

Given the Following Class, What Is Syntactically Wrong with the Implementation

question 52

Multiple Choice

Given the following class, what is syntactically wrong with the implementation of 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;
};
Void displayostream& out, const Rational& value)
{
Out << value.getNumerator) << '/"<<value.getDenominator) ;
}


Definitions:

Related Questions