CS202 Java-176
Initializing Static Members
lThis is very different from C++
lRemember, there is only one instance of a static data member no matter how many objects there are of the class
lWe initialize them in a “static block”
•class list {
•static int max_lists;
•static {
•max_lists = 100;
•}
•A static block is executed only once: the first time you make an object of the class or access a static member.