P
Paul
In real life situation, do we ever come across a situation where we
would need two base objects in an object.
A snippet is worth 1000 words so...
class Base
{
};
class Derived1ublic Base
{
};
class Derived2: public Base
{
};
class Dervied12ublic 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.
would need two base objects in an object.
A snippet is worth 1000 words so...
class Base
{
};
class Derived1ublic Base
{
};
class Derived2: public Base
{
};
class Dervied12ublic 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.