possible mistake of Ch7 ExoticBSEngine class

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

possible mistake of Ch7 ExoticBSEngine class

Postby terry8831 » Thu Mar 26, 2015 7:29 am

Hi, Mark
Can you check this problem?
in p112, I found that there is no clone() method of ExoticBSEngine class which is derived from another class ExoticEngine. I cannot run the program without adding the clone method. Do you forget to add it? Thanks.
terry8831
 
Posts: 6
Joined: Sun Mar 22, 2015 9:24 am

Re: possible mistake of Ch7 ExoticBSEngine class

Postby mj » Fri Mar 27, 2015 4:34 am

it's supposed to be an example of the template pattern rather than the strategy pattern and so doesn't need a clone.
mj
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