Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EricPengShuai/Interview
/ Derived
Class
Derived
base_code/inline.cpp:15–22 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
13
};
14
15
class Derived: public Base
16
{
17
public:
18
inline void who() override // 不写 inline 时隐含内联
19
{
20
cout <<
"I am Derived\n"
;
21
}
22
};
23
24
int main()
25
{
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected