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 is delegate in c# interview questions?
What is anonymous class in c#?
What is the use of functional interface?
List the fundamental oop concepts?
What are the fundamental principles of oo programming?
Explain use of abstract and sealed classes in c#?
What is the difference between a private assembly and a shared assembly?
What is ienumerable <> in c#?
Does the system.exception class have any cool features?
Explain the difference between Response.Write () and Response.Output.Write ().
Why is c# better than java?
What is called method in c#?
What is the difference between static and private constructor in c#?
What are data types in C#?
What is the .net datatype that allows the retrieval of data by a unique key?