What are the five types of inheritance in C++?



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

Post New Answer

More C++ General Interview Questions

What is heap sort in c++?

0 Answers  


Why was c++ created?

0 Answers  


Define friend function.

0 Answers  


What is the purpose of the "delete" operator?

0 Answers  


How is objective c different from c++?

0 Answers  






Is there a new/delete equivalent of realloc?

1 Answers  


Write the program for fibonacci in c++?

20 Answers   TATA, Wipro,


What are activex and ole?

0 Answers  


What is meant by entry controlled loop? What all C++ loops are exit controlled?

0 Answers   TCS,


Can we make copy constructor private in c++?

0 Answers  


What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?

0 Answers  


Is c++ slower than c?

0 Answers  


Categories