Virtual Base Class

Hi :).

I just read about virtual base classes. From what I understand, when you have multiple inheritance from a base class and create instances of the derived classes, there will still only be 1 instance of the virtually inherited base class.

Here is my question: Do virtual base classes' member variables become static?
Or do all objects of the derived classes still have their own set of variables?
The reason for why I think that the virtual base classes' member variables are static is that there is only one instance of that class.

Thanks for your answers :).
Best regards, Zerpent.
A hidden pointer is used, just like for virtual functions. I think...

http://www.phpcompiler.org/articles/virtualinheritance.html
Why did you think they would become static?
Could I just get a clear answer please? I apprecieate your replies but I still wonder.
Zerpent wrote:
Here is my question: Do virtual base classes' member variables become static?
No.
Ok thank you so much :).
Topic archived. No new replies allowed.