How to make a class non-inheritable other than sealed?

Answer Posted / nitin

1)Make the class Sealed
2)Make the class staic
3)Have private constructor (Like in single ton class)

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between dictionary and hashtable in c#?

510


Name which controls do not have events?

639


How to force my .net app to run as administrator on windows 7?

592


List the two important objects of ado.net and also list the namespaces that are commonly used in ado.net to aid in connection to a database.

605


Which technology is best for desktop application?

510






Why do we write system in c#?

564


Explain about c# language.

688


Can we maintain state in webservice?

605


What is the function of .IsDescendent()?

673


Explain the difference between a sub and a function in c#.

626


What I can do with c#?

607


Is type nullable c#?

602


Why do we need a singleton class?

584


What is tryparse c#?

600


What are the two kinds of properties in c#.

601