Complications of Using the Virtual Base Class

In the previous article about How Does Virtual Base Class Works Internally? we have seen address resolution of virtual base class & why it’s needed. But I have not discussed Complications of Using the Virtual Base Class. Which we will see in this article. This is going to be a bit complex & clumsy then learning the internal working of the virtual base class. But if you are not tired, then read forward....

September 12, 2019 · 8 min · 1500 words · Vishal Chovatiya

Part 2: All About Virtual Keyword in C++: How Does Virtual Base Class Works Internally?

In PART 1 of “All About Virtual Keyword in C++” series, we have discussed “How Does Virtual Function Works Internally?”. So, in this article, I will discuss “How Does Virtual Base Class Works Internally?”. I am iterating the same thing which I have mentioned in the earlier article as well that implementation of a virtual mechanism is purely compiler dependent. So, there is no C++ standard is defined for such dynamic dispatch....

September 11, 2019 · 6 min · 1249 words · Vishal Chovatiya