|
|
|
|
|
by mbel
5102 days ago
|
|
I might be missing something, but what I see as a problem is a situation where: class C implements interfaces IA and IB, which both contain method doSomething() with default implementations, class C doesn't overrides this method, so which implementation is going to be called when method doSomething() will be invoked on instance of C? Will it behave the same way if it is called as instance of C and as instance of IA or IB?
Clearly, there are rules in C++ to handle such situations, one may argue that they are problematic. |
|