G
Galian
Hi all. I have some questions about interface implementation, if
anybody can help me, I will be very thank.
So:
If i have some interface IA:
class IA
{
virtual void SomePureVirtFunc() = 0;
};
and some class B, that implemented that interface:
class B : public IA
{
virtual void SomePureVirtFunc() {};
};
Now I need in class C inherit from interface ITwoInOne, that inherited
from IA also.
Question: it is any method, inherit from interface ITwoInOne, and
don't implement interface IA, but using multiple inheritance - inherit
from class B, that already implemented that interface, and satisfy my
requirements?
Another words: can I write something like that:
class NewOne : public B
, public ITwoInOne
{
//Implementation only pure virtual functions
//, that not correspond to IA interface
}
P.S. sorry for confusion, and for my bad English.
anybody can help me, I will be very thank.
So:
If i have some interface IA:
class IA
{
virtual void SomePureVirtFunc() = 0;
};
and some class B, that implemented that interface:
class B : public IA
{
virtual void SomePureVirtFunc() {};
};
Now I need in class C inherit from interface ITwoInOne, that inherited
from IA also.
Question: it is any method, inherit from interface ITwoInOne, and
don't implement interface IA, but using multiple inheritance - inherit
from class B, that already implemented that interface, and satisfy my
requirements?
Another words: can I write something like that:
class NewOne : public B
, public ITwoInOne
{
//Implementation only pure virtual functions
//, that not correspond to IA interface
}
P.S. sorry for confusion, and for my bad English.