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
Post a Comment