Listing 2 Non-contiguous regions that make up a class scope

 1: class X
 2:     {
 3:     int i;
 4:     static int k;
 5: public:
 6:     enum { MAX = 100 };
 7:     X();
 8:     void reset() { k = MAX; }
 9:     };
10:
11: const int MIN = 0;
12:
13: void X::X() : i(MAX)
14:     {
15:     if (-k <= MIN)
16:              reset();
17:     }
18:
19: int X::k = MAX;

// End of File