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

Class Base

base_code/derived_base.cpp:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected