Can you prevent your class from being inherited and becoming
a base class for some other classes?
Answer Posted / neerajtyagi
You can prevent your class being derived using sealed
keyword.
But you can't use that class as base class once you make
that sealed.
Sealed and Derived both are opposite.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is the difference between var and dynamic types in c# 4.0?
Is namespace necessary in c#?
Value Type and Reference Type Data type in C#?
What is access specifier in c#?
What are the Types of values mode can hold session state in web.config
What is the use of parse in c#?
Can we inherit singleton class in c#?
Is enum a value type c#?
Can we overload the main method in c#?
What is difference between dictionary and hashtable?
What's the difference between System.String and System..StringBuilder in C#?
what is partial assembly reference
What does immutable mean in c#?
List the difference between the virtual method and the abstract method?
What is throw in c#?