| 22 | }; |
| 23 | |
| 24 | class Base { |
| 25 | public: |
| 26 | Base():value(20) {} |
| 27 | virtual ~Base() = default; |
| 28 | static void test1() { cout << "Base test1..." << endl; } |
| 29 | private: //私有 |
| 30 | int value; |
| 31 | }; |
| 32 | |
| 33 | /** |
| 34 | * 子类对父类成员的访问权限跟如何继承没有任何关系, |
nothing calls this directly
no outgoing calls
no test coverage detected