This Q&A is part of a weekly series of posts highlighting common questions encountered by technophiles and answered by users at Stack Exchange, a free, community-powered network of 100+ Q&A sites.
This time we will discuss virtual inheritance in C++ and find out why one should be very careful using it. Figure 1. Multiple non-virtual inheritance. When we deal with virtual inheritance, an object ...