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

Class Base

base_code/using_derived.cpp:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using namespace std;
7
8class Base{
9public:
10 void f(){ cout<<"f()"<<endl;
11 }
12 void f(int n){
13 cout<<"Base::f(int)"<<endl;
14 }
15};
16
17class Derived : private Base {
18public:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected