Answer the question
In order to leave comments, you need to log in
Inheritance and how to correctly cast interface types?
Greetings!
Please help me understand how to do it better:
and so, there is class A and its interface IA, which is inherited from class B with interface IB
class A: public IA, public B
{
public:
void a();
}
class IA
{
public:
virtual a()=0;
}
class B: public IB
{
public:
void b();
}
class IB
{
public:
virtual b()=0;
}
IA * a = ....;
a->b(); ???
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question