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

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to