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 a storage class? Mention the storage classes in c++.
How is static data member similar to a global variable?
What do you mean by vtable and vptr in c++?
Explain the register storage classes in c++.
What is fixed in c++?
What is do..while loops structure?
What is rtti in c++?
What is a forward referencing and when should it be used?
What is the difference between C and CPP?
What is a dangling pointer?
Can you think of a situation where your program would crash without reaching the breakball, which you set at the beginning of main()?
What is insertion sorting?