[Rd] S4 : declaration of inheritance

christophe.genolini at free.fr christophe.genolini at free.fr
Mon Feb 25 15:16:17 CET 2008


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



More information about the R-devel mailing list