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...

Can you prevent your class from being inherited and becoming
a base class for some other classes?

Answer Posted / pank

Make your class constructor as Private then it will restrict from being inherit as well as instantiate.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c# slower than java?

883


Does the variables of a private class-level inherited?

1019


What is join in c#?

937


Can constructor be overloaded in c#?

876


What is delegates and events?

925


Explain the serialization in .net

983


Explain the use of virtual, sealed, override, and abstract method?

876


Tell me the difference between call by value and call by reference.

968


Where are value types stored in c#?

1043


What is the diff between System.String and System.Text.StringBuilder classes?

1009


Explain briefly the difference between value type and reference type?

1027


What is a thread c#?

904


What is remote data?

833


Different between method overriding and method overloading?

986


Is int a class in c#?

975