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 the difference between an application domain and a process?
How many types of constructors are available in c#?
Is arraylist type safe in c#?
Is string nullable in c#?
Different between method overriding and method overloading?
What is default value of enum c#?
Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?
Why do we use namespace in c#?
What is the difference between interface and functional interface?
What is the difference between public, static, and void?
When would you use generics in your code c#?
Why do we need to call CG.SupressFinalize?
Define assert() method? How does it work?
What is exe in c#?
Is cli same as the clr?