QuantLib-SWING: is it possible to use polymorphism?
Posted by
andrea-110 on
URL: http://quantlib.414.s1.nabble.com/QuantLib-SWING-is-it-possible-to-use-polymorphism-tp13142.html
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?
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev