suhail Oct 14th, 2006 the class which u dont want to restrict to inherit in c# , declare with sealed keywordand notinherit keyword in vb.net
tfouda Aug 13th, 2007 VB: for class NotInheritable [MyClass] For method: NotOverridable [MyMethod]C# For class or method :sealed[MyClassMyMethod]{}
I was asked in interview that if i have created a class and i don't want the class to be inherited by any other members without me which key or function i have to use?