SV: [R] Documentation of S3 and S4 classes, inheritance

Berton Gunter gunter.berton at
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

In S3, classes do not inherit, only objects do. In S4, there is true class

Bert Gunter

More information about the R-help mailing list