By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,897 Members | 1,955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,897 IT Pros & Developers. It's quick & easy.

multiple base objects - scenario.

P: n/a
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 A
{
};
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
situation.
Is amphibian comes any way close to this???
your inputs are appreciated.

thanks,
-Paul.
Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Paul wrote:
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).

V
Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.