// Bond.cpp: implementation of the Bond class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Bond.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

Bond::Bond()
{

}

Bond::~Bond()
{

}

Bond::Bond(double c, double y): cost(c), yield(y)
{

}

double Bond::presentValue()
{
	return cost;
}


ostream & operator<<(ostream &os, const Bond &b)
{
	return os << "Bond: cost=" << b.cost << "\tyield=" << b.yield;
}

Bond::Bond(const Bond &b)
{
	cost = b.cost;
	yield = b.yield;
}

