You can prevent a class from overriding in C# by using the sealed keyword; whereas, the NotInheritable keyword is used to prevent a class from overriding in Visual Basic.
Liked By
Write Answer
How can you prevent a class from overriding in C# and Visual Basic?
Join MindStick Community
You have need login or register for voting of answers or question.
Sumit Kesarwani
27-Aug-2014You can prevent a class from overriding in C# by using the sealed keyword; whereas, the NotInheritable keyword is used to prevent a class from overriding in Visual Basic.