MCPcopy Create free account
hub / github.com/EricPengShuai/Interview / Base1

Class Base1

base_code/derived_base.cpp:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected