How can we main a Class as base class,i.e not inherited
further?{please Dont tell using Sealed class,any other way}
Answer Posted / palash
Very Simple....
Create one private Constructor inside the class then we are
not create any object of that class.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is join in c#?
How do you mark a method obsolete?
Why singleton is sealed?
What are the problem with .NET generics?
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?
What do you mean by shared assembly?
What is type cast in C#?
What is the use of constructor in c# with example?
What happens if you add duplicate elements to a set?
Is as operator in c#?
So let's say I have an application that uses myapp.dll assembly, version 1.0.0.0. There is a security bug in that assembly, and I publish the patch, issuing it under name myapp.dll 1.1.0.0. How do I tell the client applications that are already installed to start using this new myapp.dll?
What is an argument in c#?
What is the difference between c and c# programming?
What is the difference between function and method in c#?
what is a enumeration in c#