Can you prevent your class from being inherited and becoming
a base class for some other classes?
Answer Posted / guest
Yes, that?s what keyword sealed in the class definition is
for. The developer trying to derive from your class will get
a message: cannot inherit from Sealed class
WhateverBaseClassName. It?s the same concept as final class
in Java
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is a view? What is the use of it?
What is difference between array and arraylist c#?
Why do we need dependency injection in c#?
What is assembly c#?
How can it prevents DLL Hell assembly versioning in .NET?
How do I make a dll in c#?
Who is a accessibility modifier “protected internal†available to ?
What is anonymous methods in c#?
Explain the use of Mutex in C#?
What is a singleton unity?
What all details the assembly manifest will contain?
What is difference between list and dictionary in c#?
What is difference between sleep () and wait ()?
Name the method of servicebase class?
Why is main static in c#?