October 2021
Intermediate to advanced
500 pages
16h 23m
English
Central to the object-oriented programming style are classes, definitions of the unique categories of “things” your code represents. Classes define what sort of data those things will consist of and what kind of work they can do.
To make NyetHack object-oriented, you will start by identifying the unique types of things that will exist in the program’s world and defining classes for them. In this chapter, you will add a custom Player class to NyetHack, which you will use to represent a NyetHack player’s particular characteristics.
Read now
Unlock full access