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++
/
Inheritance
In a virtual-inheritance diamond, which constructor initializes the shared virtual base f…
from Inheritance
C++23
advanced
1 min
In a virtual-inheritance diamond, which constructor initializes the shared virtual base for a complete object?
The constructor of the most-derived class
Whichever intermediate base appears first alphabetically
Every intermediate base, producing one shared initialization per path
The virtual base always uses only its default constructor
Check
Ask AI about this kata
Report an error
previous kata
Spot the bug in the job hierarchy
Spot the bug
A new version is available
Reload