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 / guest

Yes, that?s what keyword sealed in the class definition is
for. The developer trying to derive from your class will get
a message: cannot inherit from Sealed class
WhateverBaseClassName. It?s the same concept as final class
in Java

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a property c#?

996


What is the C# syntax to catch any possible exception?

925


What are the types of operator?

843


Are structs faster than classes?

911


Enlist some of the properties of a thread class?

912


Is namespace necessary in c#?

905


Which program construct must return a value?

1056


What are the advantages of using c#?

925


What is the difference between readkey and readline in c#?

866


Does main have to be static c#?

1056


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

905


What is concrete class in c#?

888


Explain About Postback

918


What is console write in c#?

916


What is gac? How to put assembly in gac?

974