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 |
Define the operators that can be used with a pointer.
Explain how the virtual base class is different from the conventional base classes of the opps.
What are the extraction and insertion operators in c++?
What are the four main data types?
How to construct muliton object
What is namespace & why it is used in c++?
What are the two shift operators and what are their functions?
Is it possible for a member function to delete the pointer, named this?
What are manipulators used for?
How do I make turbo c++ full screen?
What does new in c++ do?
Write a program using display() function which takes two arguments.