Can you prevent your class from being inherited and becoming
a base class for some other classes?
Answer Posted / pank
Make your class constructor as Private then it will restrict from being inherit as well as instantiate.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are namespaces, and how they are used?
What are generic types?
Explain the difference between private and shared assembly?
How can you prevent escaping on backslashes in C# with string definitions?
How do you declare a method in c#?
What is response redirect in c#?
Which namespace is required to implement trace ?
Is post back in c#?
What are generations and how are they used by the garbage collector?
Can abstract classes be final?
Is string mutable in c#?
Why is .net so popular?
What is the difference between static and private constructor?
Can we change static variable value in c#?
Explain About Virtual functions and their use.