Home Segments Top Top Previous Next

149: Mainline

You have learned that classes act as repositories for class methods. They also act as repositories for class variables:

A class definition 
*--------------------* 
|                    | 
| Class methods      | 
|                    | 
| Class variables    | 
|                    | 
| .                  | 
| .                  | 
| .                  | 
|                    | 
*--------------------* 

In contrast to local variables, class variables continue to exist throughout a program's execution; their life is not limited to the execution of a block.