Calling parent constructors in R with multiple inheritance -


i'm trying have class call parent constructors, callnextmethod calls first parent. namely, if have

setclass('a') setclass('b') setclass('c', contains = c('a','b')) 

and define initialize methods three, printing 'in a', 'in b', , 'in c', respectively, callnextmethod in initialize method of c, prints 'in a'. there way dispatch constructors?

(and yes, know multiple inheritance bad; i'm trying implement notion of mixins , happens appropriate way it)


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -