Can you prevent your class from being inherited and becoming
a base class for some other classes?
Answer Posted / umesh
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 ? | 12 Yes | 2 No |
Post New Answer View All Answers
If you define a user defined data type by using the class keyword, is it a value type or reference type?
Name some properties of array.
What does firstordefault mean in c#?
What are the steps to create an assembly and add it to the gac?
What is difference between code access and role based security?
What is private void in c#?
What is poco c#?
Are c# generics the same as c++ templates?
Explanation on Generic?
What do you mean by winforms in c#?
What is the usage of transponders?
What is console programming language?
How to use delegates with events?
What is the difference between convert and parse in c#?
Which is better interface or abstract class in c#?