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 do you understand by the terms datareader object and dataset object?

929


What is the difference between var and dynamic types in c# 4.0?

956


What are the types of delegates in c#?

853


Describe an abstract class?

951


What is a dimensional array?

808


what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?

1846


Can private virtual methods be overridden in c#.net?

865


What is event sourcing in c#?

932


What is regex c#?

872


Is javascript harder than c#?

925


Where is the main method in c#?

962


What do you mean by thread safe in c#?

844


What is meant by clr?

960


Why do we use anonymous method in c#?

892


what is boxing and unboxing?can we initialize unboxing directly?

843