Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EricPengShuai/Interview
/ fun
Method
fun
base_code/default_arg.cpp:11–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
9
{
10
public:
11
virtual void fun (int x = 10) {
12
cout <<
"Base::fun(), x = "
<< x << endl;
13
}
14
};
15
16
class Derived: public Base
Callers
1
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected