1.

How many types of inheritance are supported in C++ for deriving a class?(a) 1(b) 2(c) 3(d) 4The question was asked in a national level competition.The doubt is from Derived Class in chapter Classes of Object Oriented Programming

Answer»

The correct choice is (c) 3

Best EXPLANATION: There are three types of inheritance possible. PRIVATE inheritance, protected inheritance, and public inheritance. The inheritance defines the ACCESS specifier to be used with the INHERITED members in the derived CLASS.



Discussion

No Comment Found

Related InterviewSolutions