Examlex

Solved

Given the Following Classes and Code, What Is the Output

question 42

Multiple Choice

Given the following classes and code, what is the output of the last statement shown?
Class Pet
{
Public:
Virtual void print) ;
String name;
Private:
};
Class Dog: public Pet
{
Public:
Void print) ;
String breed;
};
Void Pet::print)
{
Cout << "My name is " << name;
}
Void Dog::print)
{
Pet::print) ;
Cout << ", and my breed is a "<< breed << endl;
}
Pet pPtr;
Dog dPtr;
DPtr->name= "Rover";
DPtr->breed="Weiner";
PPtr= dPtr;
PPtr->print) ;


Definitions:

Simple Money Multiplier

A formula that determines the maximum amount of money that banks can create with a given level of reserves.

Excess Reserves

Banks' reserves that exceed the minimum required by the central bank, available for lending or investment.

Interest Rate

The price, expressed as a percentage of the principal, that a borrower must pay a lender for the use of funds.

Excess Reserves

are bank reserves held in excess of what is required by the central bank, which can be lent out to earn interest.

Related Questions