15.1 Introduction
Object consists of:
- Slots. Like fields in R6.
- Methods. Accessed through generics. Dispatched to particular methods.
Uses functions to define classes and their methods:
setClass()
. Define class and its components.setGenerics()
. Define generic functions. Used to dispatch.setMethods()
. Define methods