What are the five types of inheritance in C++?
Answer / nashiinformaticssolutions
1. Single inheritance, in which only one base class passes on inheritance to the derived class
2. Multiple inheritance, in which two or more base classes pass on their inheritance to the derived class
3. The derived class inherits from another derived class through multilevel inheritance.
4. Hybrid inheritance, which combines two or more distinct inheritance models
5. Hierarchical inheritance, in which a single base class gives rise to two or more derived classes.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is java made in c++?
In how many ways we can initialize an int variable in C++?
Is ca high or low level language?
How do I use arrays in c++?
What is scope operator in c++?
What are the classes in c++?
Why do you use the namespace feature?
What are the characteristics of friend functions?
What is the function of I/O library in C++ ?
What are the differences between new and malloc?
What is a "RTTI"?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.