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
What are custom exceptions in C#?
What does namespace mean?
How jit (just in time) works?
What is list array in c#?
What is difference between ienumerable and list in c#?
What is variable in c#?
What is the adv of using System.Text.StringBuilder over System.String?
Describe the types of comments in c#?
What is the use of inheritance in c#?
What does public mean in c#?
What is static and use of it?
To allow an element to be accessed using a unique key which .NET collection class is used ?
What is new method in c#?
What is data bind in c#?
Why do we write system in c#?