How does inheritance work through the class vector in S3, and what does NextMethod do?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how S3 inheritance in R works through an object's class attribute and what NextMethod() does inside a method. Tests understanding of method dispatch order, delegating work to a parent method, and what the informal S3 system leaves unchecked.