V
vineoff
First, think I'm having an abstract class
class C { public: virtual void f(); };
What is the difference between these two ways:
class D : public C { ... }
and
class D : public virtual C { ... }
I've tried to search from google with no luck. Examples are always in
first form, without keyword 'virtual' in inheritance list.
Is this too complicated to explain here?
Thanks in advance.
~ vineoff
class C { public: virtual void f(); };
What is the difference between these two ways:
class D : public C { ... }
and
class D : public virtual C { ... }
I've tried to search from google with no luck. Examples are always in
first form, without keyword 'virtual' in inheritance list.
Is this too complicated to explain here?
Thanks in advance.
~ vineoff