Skip to content
Back to formatted view

Raw Message

Message-ID: <200505232310.j4NNARsC027095@hertz.gene.com>
Date: 2005-05-23T23:10:27Z
From: Bert Gunter
Subject: SV: [R] Documentation of S3 and S4 classes, inheritance
In-Reply-To: <1116888436.4615.52.camel@iron.libaux.ucsf.edu>

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