New course! Every coder should learn Generative AI!
Try a free lesson+ 10
Virtual inheritance is a technique used in C++, where a particular base class in an inheritance hierarchy is declared to share its member data instances with any other inclusions of that same base in further derived classes
see more details here
https://en.m.wikipedia.org/wiki/Virtual_inheritance