//示例类democlass demo{public: //静态成员函数Print的申明定义 static void Print( void ) { std::cout << "this is a static method." << endl; }}