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
You are designing a user control. You created new property called backgroundimage which is of type image. You wanted to disable storing this property in the user’s form. How to achieve this?
Who introduced c#?
What is a decimal c#?
What is _viewstart cshtml?
Can a dictionary have duplicate keys c#?
What is difference between static and readonly in c#?
What is the difference between string and string in c#?
What is default class in c#?
Which is the best language for desktop application?
What the different phase/steps of acquiring a proxy object in webservice?
Is string a class in c#?
What is a struct in C#?
What is difference between dll and exe in c#?
What is access modifier in c#?
Distinguish between continue and break statement?