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

Class B

base_code/virtual_public.cpp:15–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13};
14
15class B : virtual public A
16{
17public:
18 B(int data) : A(data), mb(data) { cout << "B()" << endl; }
19 ~B() { cout << "~B()" << endl; }
20protected:
21 int mb;
22};
23
24class C : virtual public A
25{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected