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
How does split work in c#?
What is typeof c#?
What is exe in c#?
Define multicast delegate in c#?
Why is lazy loading?
Does console.writeline() stop printing when it reaches a null character within a string?
What are circular references?
What is the output of TextWriterTraceListener redirected?
Explain the types of Polymorphism.
Is .net and c# the same?
What is inheritance c#?
What does void mean in c#?
What is serialization and deserialization in c# with example?
What is object array in c#?
Why do I get a security exception when I try to run my c# app?