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

What is xamarin used for?

932


Is c# static or dynamic?

938


What is the use of the dispose method in C# ?

970


Which is executed if an exception has not occurred?

952


What are the properties of string?

955


What is the difference between interface and functional interface?

1041


What is msil, and why should developers need an appreciation of it if at all?

1052


What is multicast delegate explain with example?

995


update data in an xml file which resides in solution itself, using silverlight 4.0

1761


Why do we need nullable types in c#?

1163


what is a static constructor?

1211


How to sign an assembly with strong name?

1013


Define a strong name in .net?

995


Can we inherit private members of class in c#?

965


What is difference between a constant and read-only in C#?

962