why does vb.net not support multiple inheritance?

前端 未结 6 1380
夕颜
夕颜 2021-01-07 12:33

I\'ve seen some discussion on why c# does not implement multiple inheritance but very little as to why it isn\'t supported in vb. I understand that both c# and vb are compi

6条回答
  •  误落风尘
    2021-01-07 12:46

    There are many other techniques that prove to be vastly superior to MI, such as composition. Even in languages like C++ that do support MI, it's incredibly rare to actually see a class multiply inherit from two non-abstract base classes.

提交回复
热议问题