How to make a class non-inheritable other than sealed?
Answer Posted / divya
if we use private constructor we cant make an instance of the class, but still we can inherit it
| Is This Answer Correct ? | 13 Yes | 5 No |
Post New Answer View All Answers
What is a Assembly?
What is sqlcommand in c#?
1. Describe page life cycle?
Can destructors have access modifiers?
Is datetime a value type in c#?
Is c# 8 released?
What is response redirect in c#?
How to declare a property in a class?
What is disconnected data architecture in c#?
How do you type a null character?
What is Dependency of Injection?
We cannot create instances of static classes. Can we have constructors for static classes?
What is a protected class c#?
Why are strings in c# immutable?
Are structs value types or reference types?