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 msil in c#?

968


What is the purpose of escape sequence?

1026


What is string class in c#?

902


What is final keyword in c#?

1006


What are the properties of string?

971


What is linq c#?

893


What is the execution entry point for a c# console application?

995


Can we inherit class that contains only one private constructor?

967


What are the uses of delegates in c#?

1052


How do I unload an application domain?

969


What is difference between event and delegate in c#?

925


What is selector c#?

919


What is the difference between constants and read-only?

928


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

1062


What is difference between array and arraylist in c#?

969