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

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 ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to put assembly in gac?

947


What does it mean to override a method?

1068


How do you specify a custom attribute for the entire assembly (rather than for a class)?

1003


Is c# good for beginners?

941


Explain the types of comments in c#?

963


What is the max value of int32 in c#?

966


Why do I get a "cs5001: does not have an entry point defined" error when compiling?

1040


What does int32 mean?

948


In .NET how can you solve the DLL Hell problem?

1210


Can I call a virtual method from a constructor/destructor?

942


What is an arraylist in c#?

1138


What is called method in c#?

1019


What is a static field?

951


What is a static class in c#?

1059


When should I throw an exception?

1048