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
Explain the various types of classes used in c#?
What is marshalling and what are different kinds of marshalling?
What is the difference between ref and out parameters in c#?
Is datetime nullable c#?
What is the difference between system.text.stringbuilder and system.string?
How do I know if executenonquery is successful c#?
What is a property in c#?
Why do we need structs in c#?
What is the default scope of a class in c#?
How can encapsulation be achieved?
What is the difference between private and protected in c#?
what is the index value of the first element in an array?
What is difference between string and stringbuffer in c#?
Can a dictionary have the same key?
What is a dbml?