[英]Difference between MustInherit and Abstract Class
Could someone please explain to me the differences between an abstract class and a class marked MustInherit? 有人可以向我解释抽象类和标记为MustInherit的类之间的区别吗?
Both can implement shared and instance constructors and logic. 两者都可以实现共享和实例构造函数和逻辑。 Both can/must be inherited.
两者都可以/必须继承。
So why use one over the other and what is the difference? 那么为什么要使用一个而不是另一个呢?
MustInherit
是VB.NET
因为abstract
是C#
MustInherit
is VB.NET and abstract
is c# - they are modifiers that declare the same thing. MustInherit
是VB.NET, abstract
是c# - 它们是声明相同内容的修饰符。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.