Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EricPengShuai/Interview
/ Derived
Class
Derived
base_code/default_arg.cpp:16–22 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
14
};
15
16
class Derived: public Base
17
{
18
public:
19
virtual void fun (int x = 20) {
20
cout <<
"Derived::fun(), x = "
<< x << endl;
21
}
22
};
23
24
int main()
25
{
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected