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 is string literal in c#?

523


in object oriented programming, how would you describe encapsulation?

555


What is returned if you pass the value 12.34 to the parsefloat () function?

519


What is exe file in c#?

482


Why do we need static in c#?

505






What is readline c#?

486


Define assert() method? How does it work?

623


How to put assembly in gac?

541


How do I move from one form to another in c#?

463


What does public mean in c#?

511


What is a shared assembly?

539


Explain publishers and subscribers in events.

533


What is xml serialization in c#?

468


What is object pool in .net?

526


What is the difference between method parameters and method arguments. Give an example?

511