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 different between Static Constructor and Private Constructor?
What is namespace explain with example?
What is the difference between namespace and class?
Can abstract class be sealed?
What is typeof c#?
What .exe means?
What is an array class?
What do you mean by sealed classes and static classes?
What is the advantage of constructor in c#?
What are accessors?
What is c# most used for?
How to parse a date time string?
How can you use abstract class and interface?
What do you mean by string objects are immutable?
What is the use of tuple in c#?