Examlex

Solved

How Many Members Data and Functions) Does the Following Class

question 3

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;
};


Definitions:

Usage of Trade

Established customs and practices in a particular industry or market that are widely accepted and used by parties in commercial transactions.

Baker's Dozen

A quantity of thirteen, traditionally used to ensure buyers received good value, originating from bakers adding an extra item to a dozen.

Music Stands

Devices designed to hold sheet music at a comfortable reading angle for musicians during practice or performance.

Violin

A stringed musical instrument that is played with a bow, known for its high pitch and prominence in classical and folk music.

Related Questions