Answer: The purpose of NotInheritable keyword in VB.NET is to prevent the classes from being inherited. Classes are most often marked NotInheritable to prevent accidental inheritance.
Answer: The NotInheritable keyword when placed before the class declaration does not allow class derivation. The purpose of using NotInheritable keyword in VB.NET is to prevent accidental inheritance.
Post Your Answer
Guest User
Not sure what course is right for you?
Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.