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 view? What is the use of it?

1084


What is difference between array and arraylist c#?

1040


Why do we need dependency injection in c#?

922


What is assembly c#?

884


How can it prevents DLL Hell assembly versioning in .NET?

1021


How do I make a dll in c#?

934


Who is a accessibility modifier “protected internal” available to ?

1012


What is anonymous methods in c#?

1118


Explain the use of Mutex in C#?

1019


What is a singleton unity?

982


What all details the assembly manifest will contain?

827


What is difference between list and dictionary in c#?

881


What is difference between sleep () and wait ()?

936


Name the method of servicebase class?

999


Why is main static in c#?

968