How to make a class non-inheritable other than sealed?
Answer Posted / nitin
1)Make the class Sealed
2)Make the class staic
3)Have private constructor (Like in single ton class)
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Explain about Error handling and how this is done
Define acid rule of thumb for transactions in c#.
What is virtual class in C#?
what is difference between destruct or and garbage collection ?
What is the meaning of MSIL?
What are the properties of string?
Is datetime immutable c#?
What is the difference between string and string in c#?
Explain the difference between a struct and a class?
How many root nodes are there in an xml document?
What is Fragmentation and its Types?
Explain the ways to deploy an assembly?
How do I do implement a trace and assert?
If c# destructors are so different to c++ destructors, why did ms use the same syntax?
Does c# support try-catch-finally blocks?