Stock.h
#pragma once #include "Priceable.h" class Stock : public Priceable { public: /* Compute the price of the security in the Black Scholes world */ virtual double price( const BlackScholesModel& model) const { return model.stockPrice; } };
Downloads: Visual Studio 2012, Visual Studio 2013+, Unix, XCode, Other.
#pragma once #include "Priceable.h" class Stock : public Priceable { public: /* Compute the price of the security in the Black Scholes world */ virtual double price( const BlackScholesModel& model) const { return model.stockPrice; } };