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

Answer Posted / kishore.a

There are two ways:
1: Make the base class as static.
2: Declare a privete constructor in the base class.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use exception handling in stored procedure?

626


How does insertion sort work?

601


Is stringbuilder faster than string concatenation c#?

561


List down the reason behind the usage of c# language.

755


What do you understand by 'access specifiers' in C#?

607






In dynamic link library, which api is used for load library?

608


How would you describe encapsulation in c#?

570


What is mean by c#?

595


Is c sharp free?

620


What is the full form of GAC? Explain its uses?

659


Explain publishers and subscribers in events.

624


What is extension method in c# and how to use them?

547


What is dataadapter c#?

554


What is string pool in c#?

638


Is c# queue thread safe?

582