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 poco c#?
What is an array? Give the syntax for a single and multi-dimensional array?
What’s a strong name?
What are generics in c#.net?
What is a partial class in c#?
What are the 3 different types of arrays?
Can a struct inherit from another struct or class in c#?
What is difference between an reference type and value type in C#?
What is the difference between System.console.WriteLine() and System.console.Write() function?example?
Does unity require coding?
What is delegate in c# interview questions?
What are the fundamental differences between value types and reference types?
What is asynchronous one-way calls?
What is the use of partial methods?
What is difference between a constant and read-only in C#?