Abstract
The S3 class system is the wild west of object-oriented programming. Class hierarchies only exist implicitly through the class attributes, and generic methods can be implemented or not by any class whatsoever, with no check that interfaces and class hierarchy designs are implemented correctly. Everything depends on conventions and it is entirely up to the programmer to ensure anything resembling consistency.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 Thomas Mailund
About this chapter
Cite this chapter
Mailund, T. (2017). S4 Classes. In: Advanced Object-Oriented Programming in R. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2919-4_6
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2919-4_6
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2918-7
Online ISBN: 978-1-4842-2919-4
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)