Thanks for reply Henrik, seems obvious now.
Can child class (B) access argument of the parent class, i.e. can i rewrite
definition of the class B as

setConstructorS3("ClassB", function() {
  extend(ClassA(), "ClassB",
    .size2 = A
  );
})

it didn't work for me, so guess i'm doing smth wrong and i couldn't find any
reference on inheritance in the help files.

-- 
View this message in context: 
http://www.nabble.com/Methods-dispatch-and-inheritance-R.oo-tp20339090p20358341.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to