Language : C/C++
Problem : Taking the common example, where
- A is the parent class.
- B and C both inherited from class A.
- D is inherited from both B and C
and we want to access A's function through an object of D
Note: it's virtual inheritance! So we know there will be only one object of A.
The question is : Whose object will be first created B's or C's ?
Keeping the hierarchy in mind
A
/ \
B C
\ /
D