简体   繁体   中英

Difference between MustInherit and Abstract Class

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 difference?

MustInheritVB.NET因为abstractC#

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

abstract (C# Reference)

MustInherit (Visual Basic)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM