Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/changkun/modern-cpp-tutorial
/ foo
Method
foo
code/2/2.7.cpp:44–47 ·
view source on GitHub ↗
显式重载
Source
from the content-addressed store, hash-verified
42
43
// 显式重载
44
virtual void foo(int v) override {
45
std::cout << v << std::endl;
46
value = v;
47
}
48
}; // 合法 final
49
50
// class Subclass2 : Subclass {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected