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 difference between constants and read-only?
Is an interface a type c#?
How can you set image source dynamically from c# application to ”test.png” file?
What Is An Interface Class?
What is ioc containers c#?
What is mvc firstordefault?
Are c# constructors the same as c++ constructors?
Can class be protected in c#?
Can we use "this" command within a static method?
Define using statement in c#?
What are the different states of a thread?
What is fcl in c#?
What is boxing & unboxing?
What are the types of parameters in c#?
What is ilasm.exe used for?