I have a handle to an object , which actually points to derived class .My question is, what is the ideal way to be able to call a method of the the derived class, if it is not a function in the base class?
eg.,
Handle<Model> modelHW(new HullWhite(rhTermStructure));
modelHW->discount() //<- Does not compile as discount is not a member of a Model
Thanks,
Amar
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search