Sunday, 28 April 2013

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?

VB: for class NotInheritable [MyClass]
For method: NotOverridable [MyMethod]
C# For class or method :sealed[MyClassMyMethod]{}

No comments: