Wednesday, June 10, 2009

How to prevent inheritance of a class in .NET?

Que. How to prevent inheritance of a class in .NET?
Ans. Use the keyword NotInheritable in VB.NET and sealed in C#.

No comments: