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

Class Base

base_code/struct_function.cpp:9–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7using namespace std;
8
9struct Base {
10 int v1{};
11private:
12 int v3{};
13public: // 显示声明public
14 int v2{};
15 static void print(){
16 printf("%s\n","Base hello world");
17 };
18 Base() {
19 cout<<"Base construct"<<endl;
20 };
21 virtual ~Base() {
22 cout<<"Base deconstruct"<<endl;
23 };
24};
25
26typedef struct Base1 {
27 int v1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected