[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.
Technical Discussion :: C++

23 / 187

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 :: TCSAccentureSopra SteriaSociete Generale

Post Your Answer Here:


Rate This: +1 -0      +
Report    

Post Your Reply Here:

Alert me
q4i-reply-your-answer

Report Error

Please Login First Click Here

Most Popular Qs.