Explain R's S3 and S4 object-oriented systems, their key differences, and when to use each one
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how the S3 and S4 object systems in R define classes and dispatch methods, how they differ, and when each one fits. Tests knowledge of generic functions, typed slots, validity checks, multiple dispatch, and the trade-off between informal conventions and enforced structure.