Chapter 15 S4

15.3.6.2 Exercises

What is a virtual class and how does it relate to setClassUnion [see ?setClass]

A virtual class is a class that cannot be instanciated. Rather than define two of the same methods for two classes, give them both a virtual parent class with the shared method.

Signature

In our own words what exactly is a signature? Are there any signatures within our Person example? If not can we add one?

15.5.1 Single dispatch

What’s a use case in the wild for ANY?