在VB .Net中可以进行多重继承吗? [英] Is multiple inheritance possible in VB .Net?

查看:77
本文介绍了在VB .Net中可以进行多重继承吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VB .Net中可以进行多重继承吗?如果是这样,语法是什么?

Is multiple inheritance possible in VB .Net? If so, what is the syntax?

推荐答案

简短答案:否

稍长的答案:是的,如果您继承多个接口和一个基类.由于这通常是MI(您想要实现多个接口)的原因,因此通常就足够了.但是,在少数情况下,真实" MI很有用,.NET会阻止您这样做.

Slightly longer answer: Yes, if you inherit multiple interfaces, and a single base class. Since this is usually the reason for MI (you want to implement multiple interfaces), it's usually enough. However, in those rare instances where "real" MI is useful, .NET prevents you from doing it.

这篇关于在VB .Net中可以进行多重继承吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆