// Savings.cpp: implementation of the Savings class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Savings.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

Savings::Savings() : interest(0)
{

}

Savings::~Savings()
{

}

Savings::Savings(double bal, double i) : CashAccount(bal), interest(i)
{

}

Savings::Savings(const Savings & s) : CashAccount(s.balance), interest(s.interest)
{

}

ostream & operator <<(ostream &os, const Savings &s)
{
	return os << "Savings: interest=" << s.interest
		<< "\t" << static_cast<CashAccount>(s);
}
 