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 |
What is abstract class in c++?
What is pair in c++?
What is the C-style character string?
Explain how functions are classified in C++ ?
Is c++ the hardest language?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
What is a mutable member?
What do you know about near, far and huge pointer?
What is ofstream c++?
Why is c++ still popular?
What is the difference between passing by reference and passing a reference?
What is encapsulation in C++? Give an example.
0 Answers HAL, Honeywell, Zomato,