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
Which controls do not have events?
What is c-sharp (c#)?
How does the lifecycle of Windows services differ from Standard EXE?
Can c# inherit multiple classes?
Are c# objects passed by reference?
How does dependency injection work c#?
What is the example of predicate?
Why are strings in c# immutable?
Is null == null c#?
What is difference between arraylist and list in c#?
What is the default value of decimal in c#?
List some of the basic string operation?
Can struct be static in c#?
Can you inherit from a static class in c#?
What is meant by console programming?