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
How long does it take to get a loop recorder put in?
What I can do with c#?
Why to use lock statement in c#?
What is cshtml?
Can you specify nested classes as partial classes?
Are c# tuples immutable?
What is the value which is accepted by all data types ?
What is verbatim string?
What is string programming language?
What is ienumerable t in c#?
Can you declare a class or a struct as constant?
What is the difference between early binding and late binding in c#?
What standard types does c# use?
What is executescalar in c#?
What is the purpose of escape sequence?