How can you prevent classes to be inherited?

Answer Posted / nitin kumar tomar

just make the class sealed like

sealed public class classname

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In which way you can convert a value-type to a reference-type?

539


What is the default value of boolean variable?

458


What is stringbuilder c#?

517


Explain manifest in c#.

524


What are the Configuration files in .net?

515






What is the purpose of reserved word using in c#?

501


Do extension methods have to be static?

547


Why do we need indexers in c#?

480


State two different types of access modifiers.

564


How to properly clean up excel interop objects?

511


Explain dataset.acceptchanges method in .net?

545


Can we inherit abstract class in c#?

491


What are the Features in .net framework 1.1

559


What are indexers in c# .net?

529


What is lazy loading c#?

502