Design question here

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Design question here

Joseph Wang
Would it make sense to model a dividend payment on a stock as a cash
flow, and create a class

Dividend
DividendPaymentVector that creates a vector of Dividend payments?

Also what about making CashFlow a child class of

class Event : public Observable {
public:
virtual ~Event();
virtual Date date() const = 0;
}

in which callability events and exercise dates can also be events.