In this chapter, we will cover the following recipes:
- Creating a new class
- Assigning properties with constructor arguments
- Defining methods on a class
- Checking theĀ instance type with instanceOf
- Using getters to create read-only properties
- Using setters to encapsulate values
- Using static methods to work with all instances