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
How to find methods of a assembly file (not using ILDASM)?
What is difference between function and method in c#?
Define constructor in c#.
Which of the following operations can you not perform on an ado.net dataset?
Difference between debug.write and trace.write?
What are the different types of constructors?
Is Facebook a desktop application?
What is gui in c#?
Why do I get a security exception when I try to run my c# app?
What are the different states of a thread?
What does console readline do?
What is linq c#?
What does writeline mean?
What will a loop recorder show?
What's the difference between an integer and int?