How can we main a Class as base class,i.e not inherited
further?{please Dont tell using Sealed class,any other way}

Answer Posted / palash

Very Simple....
Create one private Constructor inside the class then we are
not create any object of that class.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which one is trusted and which one is untrusted?

506


What does .length do in c#?

515


What is the difference between int.parse and int.tryparse methods?

562


What is the delegates in c#?

501


Which programming language is best for desktop applications?

448






What is the difference between c and c sharp?

539


What is toint32 c#?

615


Describe how a .net application is compiled and executed

511


Why we use methods in c#?

552


What is a must for multitasking

556


How do I make a dll in c#?

497


How many static constructors are allowed in a class?

470


Why static constructor is parameterless in c#?

590


How do we achieve encapsulation in c#?

475


hi, is compulsory .net knowledge need for biztalk server training. if need, how far?.tell me some info abt real time instructors in hyd or other?

1055