Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions

Technical Discussion :: C++

5. What Is Inheritance? What is the diamond problem that can occur with multiple inheritance? Explain an example.

Answer:

Inheritence is deriving parent(base) class properties to derived class.


The Diamond Problem :


    A


   /  \


  B   C


   \   /


    D


Now Class B

Asked In :: TCS Accenture Sopra Steria Societe Generale

Post Your Answer Here:

Name *
Email
Alert me

Post Your Reply Here:

Report Error

Please Login First Click Here