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 the use of static members with example using c#.net.

482


Why is it called c sharp?

502


what is IEquatable

551


What is an object pool in .net?

641


Is int a class in c#?

493






What is using keyword?

517


What is the use of table aliases?

482


What is thread in c#?

539


Explain states of a thread in c#?

517


How to get the sum of last 3 items in a list using lambda expressions?

500


What is the difference between select and selectmany?

427


How do you concatenate in c#?

480


Do we get an error while executing the “finally” block in c#?

497


What are anonymous types in c#?

467


What is the difference between int16 and int32 in c#?

464