Prevent a class from being overridden in Visual Basic and C#

How to prevent a class from being overridden in Visual Basic and C# ?

E

Expert

Verified

To prevent a class from being overridden in C# use a sealed keyword; while, the NotInheritable keyword is used in Visual Basic to prevent a class from being overridden.

   Related Questions in Software Engineering

©TutorsGlobe All rights reserved 2022-2023.