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

Answer Posted / adhithya

use private construtor inside the class.so that it cant be
inherited

Is This Answer Correct ?    4 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are Namespaces?

637


Is string null or empty?

592


Why do we need singleton class in c#?

614


What is semaphore in c#?

593


Is array thread safe c#?

558






Explain inheritance in c#?

620


What is an enumerator c#?

603


When Should You Call The Garbage Collector In .net?

654


What is scope c#?

534


What is the function of the not null constraint?

577


what is a destructor?

685


Does google use c#?

606


What is inumerable?

641


What is the value which is accepted by all data types ?

611


Which types of inheritances does c# support?

543