Multiple Inheritance Ambiguity with Interface

前端 未结 6 2224
轮回少年
轮回少年 2020-12-24 12:48

We all know about the diamond problem regarding multiple inheritance -

   A
  / \\
 B   C
  \\ / 
   D

This problem describe an ambiguous

6条回答
  •  渐次进展
    2020-12-24 13:38

    Interfaces having dummy declarations and they won't have implementations hence no ambiguity problem.

提交回复
热议问题