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
Can we create multiple constructors?
What is interface used in c#?
Why do we use constructors in c#?
What is the main purpose of xml?
What is ispostback c#?
Okay, so an int is a value type, and a class is a reference type. How can int be derived from object?
How do I use the 'using' keyword with multiple objects?
What is the difference between virtual method and abstract method?
What is scaffolding in c#?
Is there regular expression (regex) support available to c# developers?
Is Facebook a desktop application?
I wish to create a windows application to perform a similar function as that of the "Search" which is provided to look for related files and folders in the System.. What steps must i follow??
Explain clr in brief.
What are the different approaches of passing parameters to a method?
How more than one version of an assembly can keep in same place?