开发者

Difference between MustInherit and Abstract Class

开发者 https://www.devze.com 2023-02-14 13:53 出处:网络
Could someone please explain to me the differences between an abstract class and a class marked MustInherit?

Could someone please explain to me the differences between an abstract class and a class marked 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 differe开发者_运维百科nce?


MustInherit is to VB.NET as abstract is to C#


MustInherit is VB.NET and abstract is c# - they are modifiers that declare the same thing.

abstract (C# Reference)

MustInherit (Visual Basic)

0

精彩评论

暂无评论...
验证码 换一张
取 消