Aan de slagGa gratis aan de slag

Make it Classy (2)

In the last exercise, you overrode the class of an object representing a chess game.

To test your understanding, see if you can tell how this affects the four functions for interrogating variable type: class() (docs), typeof() (docs), mode() (docs), and storage.mode() (docs).

The chess variable with class "chess_game" is still defined in your workspace. Which of the following statements is true?

You can explore the truth of the statements in the console.

Deze oefening maakt deel uit van de cursus

Object-Oriented Programming with S3 and R6 in R

Cursus bekijken

Praktische interactieve oefening

Zet theorie om in actie met een van onze interactieve oefeningen.

Begin met trainen