multiple base objects - scenario.
In real life situation, do we ever come across a situation where we
would need two base objects in an object.
We programmers can better understand program than english (: so...
class Derived1:public Base
class Derived2: public Base
class Dervied12:public Derived1, public Derived2
//two objects of Base
//typical, just no virtual derivation of Base
Just to set the point right, I know we can remove one Base by using
virtual, but that's exactly not the goal here, do we have case where
we need two Base objects, can we compare it with any real life
Is amphibian comes any way close to this???
your inputs are appreciated.
Re: multiple base objects - scenario.
> In real life situation, do we ever come across a situation where we
> would need two base objects in an object.
I never encountered a situation where I'd specifically need two
bases (i.e. virtual inheritance would be against what I'd want).
|All times are GMT. The time now is 12:10 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.