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

What is a thread? What is multithreading?

689


Why singleton class is sealed in c#?

681


What does string format do?

632


What is transparent caching with aop ?

775


What is an arraylist in c#?

772


HOW to Develope the CRUD(create,read,update,delete) FORM IN WINDOWS form by using c# only

708


Does c# support properties of array types?

685


Name which controls do not have events?

757


What is the predicate of a sentence?

641


What are collections in c#?

653


What is uint64_t?

715


What are the 2 broad classifications of data types available in c#?

639


What are the steps to make an assembly to public?

690


What you mean by delegate in c#?

654


Where do I put dll files?

730