Home > DeveloperSection > Interviews > How can you prevent a class from overriding in C# and Visual Basic?

Posted on    August-27-2014 11:56 PM

 C# C# 
Ratings:
 1 Answer(s)
  961  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Points:3910
Posted on    August-27-2014 12:00 AM

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.


Don't want to miss updates? Please click the below button!

Follow MindStick