Re: [R] Methods dispatch and inheritance R.oo

From: Yuri Volchik <>
Date: Thu, 06 Nov 2008 02:12:04 -0800 (PST)

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:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 06 Nov 2008 - 10:18:12 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 06 Nov 2008 - 20:30:23 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive