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

Class Derived

base_code/struct_function.cpp:37–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35} B;
36
37struct Derived:Base {
38
39 Derived() {
40 cout<<"Derived construct"<<endl;
41 };
42 ~Derived() override {
43 cout<<"Derived deconstruct"<<endl;
44 };
45public:
46 int v2 {};
47 static void print(){
48 printf("%s\n","Derived, hello world!");
49 };
50};
51
52
53//void Base(){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected