In which type of inheritance do all derived classes share a common base class?
- Multiple Inheritance
- Hierarchical Inheritance
- Multilevel Inheritance
- Hybrid Inheritance
Hierarchical Inheritance is when multiple derived classes inherit from a single base class. All the derived classes share the features of that one common base class. This kind of inheritance structure resembles a hierarchy or tree structure.
Loading...
Related Quiz
- In tail recursion, the recursive call is the _______ action to be performed in the function.
- A specific version of a function template created for a particular data type is referred to as a template _______.
- A function in your codebase is exhibiting unexpected behavior because it is being passed an argument of an incorrect type, but the compiler is not generating an error. What might be a potential reason for this, and how could it be resolved?
- In which year was the C++98 standard officially published?
- Which of the following data types is not a primitive data type in C++?