Relative Content

Tag Archive for c++oopinheritancediamond-problem

what are two solutions to resolve diamond problem issue in C++ Inheritance

I faced a problem when I made a parent class having two child classes and these two child classes have a common grandchild class but at run-time compiler showed an error of ambiguity then I came to know by a friend that this was a diamond problem. Now I want to know the solution to this problem. I know to solve this we use virtual keyword but is there any more method to resolve this issue.