overriding in C# and Visual Basic

How can you avoid a class from overriding in C# and Visual Basic?

E

Expert

Verified

A class can be prevented from overriding in C# by using the “sealed” keyword; whereas, the NotInheritable keyword is used in order to prevent the class from overriding in Visual Basic.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.