What is the use of “MustInherit” keyword in VB.NET

Q

What is the use of “MustInherit” keyword in VB.NET ?

✍: Guest

A

If you want to create a abstract class in VB.NET it’s done by using “MustInherit” keyword.You can not create an object of a class which is marked as “MustInherit”. When you define “MustInherit” keyword for class you can only use the class by inheriting.

2007-10-23, 5195👍, 0💬