Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
C++
/
Virtual functions
After overload resolution selects a virtual member, what selects the function body for an…
from Virtual functions
C++23
intermediate
1 min
After overload resolution selects a virtual member, what selects the function body for an ordinary call through Base&?
The complete object's dynamic type determines the final overrider.
The source-file order of the class definitions determines it.
The static type always forces the base implementation.
The access level of the overriding function determines it.
Check
Ask AI about this kata
Report an error
previous kata
A Base constructor calls a virtual member on *this while constructing a Derived object. W…
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload