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

Answer Posted / chanchal rai

yes we have only one option to make none inheritable other than sealed.....we ll have to make the class Private.whenever we do use the Private keyword in the class for make it private than no any methods and class can inherit from that class

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are native functions?

544


Which is better interface or abstract class in c#?

518


What does clr stand for?

576


what is c# command?

597


What is a string in c#?

558






Can derived classes have greater accessibility than their base types?

625


What is readline library?

591


What is the difference between delegates and superdelegates?

556


what is a structure in c#

631


What is serialization in .net?

644


What do constructors do in c#?

582


Is c and c# the same?

579


What is a multi line comment?

648


What are the delegates in c#?

567


How does return work in c#?

604