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

From: Yuri Volchik <yuri.volchik_at_gmail.com>
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: 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_at_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.
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive