Can you prevent your class from being inherited and
becoming a base class for some other classes?
Answer Posted / dhanunjaya
yes,By using a keyword called "sealed".a sealed class can
never be a base class for any class,it is the bottom most
class in a class hierarchy.......so it cant be be base
class further more....
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain About Virtual functions and their use.
What is the difference between // comments, /* */ comments and /// comments?
Enlist some of the properties of a thread class?
Why use a singleton instead of static methods?
What are types in c#?
Is object an int c#?
What are the 2 kinds of data type conversions in c#?
How do I stop my console from closing in c#?
Explain the process of Serialization?
Explain the differences between static, void and public in c#?
What are value types in c#?
What is linq c#?
What is helper method in c#?
Is c# and .net same?
When was .net linq added?