How to make a class non-inheritable other than sealed?
Answer Posted / chanchal rai
yes we have only one option to make none inheritable other than sealed.....we ll have to make the class Private.whenever we do use the Private keyword in the class for make it private than no any methods and class can inherit from that class
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are delegates in C#?
What are the 4 pillars of any object oriented programming language?
Is c sharp open source?
Explain About CLS?
Can class be protected in c#?
What is the use of console readline () in c#?
What does protected internal access modifier mean?
Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?
My switch statement works differently! Why?
How to handle exceptions that are raised in a component?
What is difference between ienumerable and iqueryable in c#?
What is the importance of closing an ado.net application?
What is datetime minvalue in c#?
What is deferred execution?
Why abstraction is used in c#?