Please enable JavaScript to use CodeHS

Chapter 5

Writing Classes

5.1 Anatomy of a Class

Access Levels

Class Access

Instance Variable Access

Method Access

Rectangle Getter Methods

Check Your Understanding

  1. Invalid Answer

Exercise: Access for Employee Class