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 |
Give 2 examples of a code optimization?
What do you mean by ‘void’ return type?
What is a hash function c++?
how to access grid view row?
What is binary object model?
What is cout flush?
What does new in c++ do?
What relational operators if statements in c++?
What is scope in c++ with example?
What is an object in c++?
Is c++ free?
How do pointers work?