Please enable JavaScript to use CodeHS

AP CSA: MOD-2.A.2

CodeHS Lessons

The keyword private restricts access to the declaring class, while the keyword public allows access from classes outside the declaring class.

11.1 Writing Classes
12.11 Key Terms for Classes
6.11 Key Terms for Classes
4.11 Key Terms for Classes