#include <iostream> using namespace std; class TestStatic final { public: static void PrintName() { cout << "Myname is test Statci class...." << endl; } protected: virtual void DummyFunc() = 0; }; //class TT2 :TestStatic //error //{ // // //}; //测试 int main() { TestStatic::PrintName(); //TestStatic::DummyFunc(); //error }