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

Correct Answer: 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

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion