Technical Discussion :: C++
Home > Freshers > Technical Interview Questions > C++
52. What Is Inheritance? What is the diamond problem that can occur with multiple inheritance? Explain an example.
Answer:
Now Class B
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
Inheritence is deriving parent(base) class properties to derived class.
The Diamond Problem :
A
/ \
B C
\ /
D
Now Class B