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 does the parsefloat function do?
What is the main method?
What is difference between out and ref in c#?
What is a hashset c#?
What is option parameter in C#?
What do you mean by jagged arrays in c#?
What is main thread in c#?
Difference between value and reference type. What are value types and reference types?
How many bits is int32?
Can namespace contain the private class?
Explain the steps to create satellite assembly?
Describe two uses of the “using” statement during the operation of c#?
How can you reference current thread of the method ?
What is the process of Serialization?
Why do we use static methods in c#?