|
From: Andrea <mar...@go...> - 2009-10-19 09:53:58
|
Hi,
I've tried to use polymorphism in QuantLib-SWING Java version
Something like
class MyPayoff extends Payoff {}
then
Payoff p = new MyPayoff()
VanillaOption vo = new VanillaOption(p,...)
but I get "wrong payoff type" since it must inherit from StrikeTypedPayoff which is not exposed in Java.
Am I doing something stupid?
|