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 |
Which should be more useful: the protected and public virtuals?
How to defines the function in c++?
Explain how to initialize a const member data.
What is scope in c++ with example?
What is the difference between a definition and a declaration?
Is it possible to provide default values while overloading a binary operator?
Why was c++ created?
What is the difference between struct and class?
What is std namespace in c++?
What is the difference between = and == in C?
20 Answers Christ University, Intel,
Write about c++ storage classes?
What do the header files usually contains?