There are two main styles of Object-Oriented Programming (OOP) - message passing OOP and - generic function OOP.
Although message passing OOP is can be found in more programming languages in R the generic function OOP is more often used than the message passing OOP style.
In OOP message passing describes that a message, i.e. the name of the method and its input parameters, it passed to the object for dispatch.
Generic functions, also known as polymorphic functions, are functions whose implementation varies based on the types of its arguments. In other words, the code executed for a specific set of arguments is determined by the types of those arguments.
There exist several OOP implementations in R
The examples will be shown during the lecture.
https://homerhanumat.github.io
https://doi.org/10.1145/114669.114671