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!

2 posts • Page **1** of **1**

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!

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!

- terry8831
**Posts:**6**Joined:**Sun Mar 22, 2015 9:24 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.

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.

- mj
- Site Admin
**Posts:**1380**Joined:**Fri Jul 27, 2007 7:21 am

2 posts • Page **1** of **1**

Return to C++ design patterns and derivatives pricing

Users browsing this forum: No registered users and 1 guest