posted 14 years ago
When you are calling Grade(int x) constructor and incrementing x value i.e x++, means you are increasing local variables value, not the class's static variable's value(remember that concept of shadowing is applied here).
Sage of The Monstrous Toad of Mount Myoboku