// This is the implementation file for class ExtendedMoney ("ExtMoney.cpp"). #include "extmoney.h" #include void ExtMoneyType::Print() const { MoneyType::Print(); cout << currency << endl; } void ExtMoneyType::Initialize (long newDollars, long newCents, const string newCurrency) { currency = newCurrency; MoneyType::Initialize(newDollars, newCents); } string ExtMoneyType::CurrencyIs() const { return currency; } ExtMoneyType::ExtMoneyType() { currency = "dollars"; } ExtMoneyType::ExtMoneyType (long newDollars, long newCents, const string newCurrency) : MoneyType(newDollars, newCents) { currency = newCurrency; }