Exercise 5.4

This forum is to discuss the book "C++ design patterns and derivatives pricing."

Exercise 5.4

Postby terry8831 » Thu Apr 02, 2015 1:28 pm

Hi, MJ
Could you give me a hint about Exercise 5.4, how to design the strategy pattern in general. I can only think of class with PathsDone or Time spent. But how to design in a more general case? Thank you!
Posts: 6
Joined: Sun Mar 22, 2015 9:24 am

Re: Exercise 5.4

Postby mj » Wed Jun 10, 2015 12:10 am

the point of the exercise is to have a base class TerminatorMC

and implement the two examples as inherited classes from it.

Another class to implement would be terminate when standard error is less than an input level.
Site Admin
Posts: 1380
Joined: Fri Jul 27, 2007 7:21 am

Return to C++ design patterns and derivatives pricing

Who is online

Users browsing this forum: No registered users and 1 guest