S3
is used to overload any function. So that we can call the functions with different names, and it depends on the type of input parameter or the number of parameters, and the S4
is the most important characteristic of oops. However, this is a limitation, as it is quite difficult to debug. There is an optional reference class for S4
.