C++

Asked • 06/27/19

In C++, what is a virtual base class?

I want to know what a "*virtual base class*" is and what it means. Let me show an example: class Foo { public: void DoSomething() { /* ... */ } }; class Bar : public virtual Foo { public: void DoSpecific() { /* ... */ } };

1 Expert Answer

By:

Anonymous A. answered • 03/01/22

Tutor
New to Wyzant

Professional Game Developer Specializing in C++

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.