| 7 | using namespace std; |
| 8 | |
| 9 | class Base1 { |
| 10 | public: |
| 11 | Base1():value(10) {} |
| 12 | virtual ~Base1() = default; |
| 13 | static void test1() { cout << "Base test1..." << endl; } |
| 14 | protected: // 保护 |
| 15 | int value; |
| 16 | }; |
| 17 | |
| 18 | // 默认为私有继承 |
| 19 | class Derived1 : Base1 { |
nothing calls this directly
no outgoing calls
no test coverage detected