Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / chanchal rai

yes we have only one option to make none inheritable other than sealed.....we ll have to make the class Private.whenever we do use the Private keyword in the class for make it private than no any methods and class can inherit from that class

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the various types of classes used in c#?

884


What is marshalling and what are different kinds of marshalling?

860


What is the difference between ref and out parameters in c#?

939


Is datetime nullable c#?

953


What is the difference between system.text.stringbuilder and system.string?

959


How do I know if executenonquery is successful c#?

790


What is a property in c#?

855


Why do we need structs in c#?

802


What is the default scope of a class in c#?

896


How can encapsulation be achieved?

1047


What is the difference between private and protected in c#?

887


what is the index value of the first element in an array?

883


What is difference between string and stringbuffer in c#?

895


Can a dictionary have the same key?

918


What is a dbml?

848