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

Answer Posted / jj

A static class is basically the same as a non-static class,
but there is one difference: a ... Static classes are sealed
and therefore cannot be inherited.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the meaning of Object lifetime in OOPS

610


What is the differences between datagrid, datalist and repeater in .net?

568


What is sqlcommand in c#?

576


What is _layout cshtml?

562


How can we sort the elements of the array in descending order?

615






You are creating a custom usercontrol, some of the newly created properties are shown in the properties window. How you can hide a new property named theme from the properties window?

583


Give an example of removing an element from the queue?

557


What are the 3 different types of arrays?

658


What is connection pooling in ado.net?

618


Can we have static indexer in c#?

577


Which is better python or c#?

545


What is inumerable?

641


Is stringbuilder thread safe c#?

556


What is the base class of all classes in c#?

600


What is streamreader/streamwriter class?

586