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 difference between association, aggregation and inheritance relationships?
Is dictionary reference type c#?
Can we make a class private in c#?
State the top.NET class that everything is derived from?
How is a strongly-named assembly different from one that isn’t strongly-named?
What is data bind in c#?
What is difference between mutable and immutable in c#?
What is list array in c#?
Can we have 2 main methods in c#?
What do you mean by expression tree?
Why we use dll in c#?
Why are strings immutable in c#?
What is an example of a delegate?
Name some properties of thread class.
can you allow a class to be inherited, but prevent the method from being over-ridden?