From christophe.genolini at free.fr  Mon Feb 25 15:16:17 2008
From: christophe.genolini at free.fr (christophe.genolini at free.fr)
Date: Mon, 25 Feb 2008 15:16:17 +0100
Subject: [Rd] S4 : declaration of inheritance
In-Reply-To: <mailman.25.1203937206.11666.r-devel@r-project.org>
References: <mailman.25.1203937206.11666.r-devel@r-project.org>
Message-ID: <1203948977.47c2cdb18dc3c@imp.free.fr>

Hi the list,

There is two way to declare a new object with inheritence : one can do

setMethod("myClass",
  representation("fatherClass",x="numeric")
  ....

or

setMethod("myClass",
  representation(x="numeric"),
  containt="fatherClass"
  ....

Is there any difference ? What is the usal way ?

Christophe



[Rd] S4 : declaration of inheritance
christophe.genolini at free.fr