class1 { public: static const int stay = 0; static const int run = 1; }; class2:public class1 { public: static const int jump = 2; };