I have a requirement which will form the diamond dread pattern. But I have come across comments from stack overflow mates that if the virtual base class is a pure abstract class, then the diamond pattern is not so much of a concern. Can someone please expand on this as to why it is so?
Share
Multiple inheritance in C++ is a powerful, but tricky tool, that often leads to problems if not used carefully.
Following article will teach you how to use virtual inheritance to solve some of these common problems programmers run into.
Solving the Diamond Problem with Virtual Inheritance
try to implement dimond as follow:Article gives very good explanation