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
What does public inheritance guarantee about accessible base members?
from Inheritance
C++23
beginner
1 min
What does public inheritance guarantee about accessible base members?
Public members stay public, protected members stay protected, and private members remain inaccessible to derived members.
Every base member becomes public in the derived class.
Protected members become private, while private members become protected.
Access changes only at runtime after an upcast.
Check
Ask AI about this kata
Report an error
previous kata
What does this program print?
Predict the output
next kata
Review generated report hierarchy
Review AI code
A new version is available
Reload