SV: [R] Documentation of S3 and S4 classes, inheritance
Berton Gunter
gunter.berton at gene.com
Tue May 24 01:10:27 CEST 2005
I don't think you quite said what you meant ...
> I thought if you wanted C to inherit from A and B you could, in S3,
> just
> class(aCObject)<- c('C', 'A', 'B')
> While the ordering is arbitrary, that's usually the case with multiple
> inheritance.
>
I assume you meant, "I thought if you wanted aCObject to inherit from A and
B,..."
In S3, classes do not inherit, only objects do. In S4, there is true class
inheritance.
Cheers,
Bert Gunter
More information about the R-help
mailing list