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 is written in c#?
What is disco?
How to generate strong name key file or which command is used to generated strong name key file?
Which programming language is best for desktop applications?
Can you inherit from a sealed class?
Are enums static c#?
What is a string in c#?
Can enum be null c#?
Which debugging tools you can use in the .NET ssSDK?
Can I define a type that is an alias of another type (like typedef in c++)?
What are types in c#?
What is dynamic in c#?
Why do we need reflection in c#?
What is string in c# net?
Explain how to implement delegates in c#.net