setClass(): Create a new class
setMethod(): Create a new method
setGeneric(): Create a new generic function
new(): Generate a new object for a given class
getClass(): Get the class denition
getMethod(): Get the method denition
getSlots(): Get the name and class of each slot
@: Get or replace the contents of a slot
validObject(): Test the validity of an object
Cited from http://www.pitt.edu/~njc23/Lecture4.pdf
An example of OOP in GNU R using S4 Classes
The S4 object system
No comments:
Post a Comment