// Checking.cpp: implementation of the Checking class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Checking.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

Checking::Checking()
{

}

Checking::~Checking()
{

}

//the static_cast is a trick that allows me to call the
// parent operator<<  [Is there a better solution?]
ostream & operator <<(ostream &os, const Checking &c)
{
	return os << "Checking:\t" << static_cast<CashAccount>(c);
}

//IMPORTANT: Notice How I call the parent-class constructor
// to initialize the private data members.
Checking::Checking(double b) : CashAccount(b)
{

}
