Please enable JavaScript to use CodeHS

AP CSA: MOD-2.H.3

CodeHS Lessons

Static variables are used with the class name and the dot operator, since they are associated with a class, not objects of a class.

11.7 Static Variables and Methods
11.7 Static Variables and Methods
12.7 Class Methods and Class Variables
5.7 Static Variables and Methods
6.7 Class Methods and Class Variables
4.7 Class Methods and Class Variables