How to make a class non-inheritable other than sealed?
Answer Posted / kishore.a
There are two ways:
1: Make the base class as static.
2: Declare a privete constructor in the base class.
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is the namespace for the thread class?
What is an assembly in dotnet?
Is array thread safe c#?
List out the differences between array and arraylist in c#?
Why abstraction is used in c#?
Can we have static indexer in c#?
what happens if you inherit multiple interfaces and they have conflicting method names?
What is desktop example?
What is scaffolding in c#?
What is namespace in oop?
What is predicate c#?
What is method in c#?
Are structs faster than classes?
What are the string functions in c#?
How big is int16?