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...

How can we main a Class as base class,i.e not inherited
further?{please Dont tell using Sealed class,any other way}

Answer Posted / jay

final is an identifier valid in java, c# has sealed.
while its true that marking base CTOR as private makes
deriving from that class impossible, you SHOULD use sealed
for that purpose.
Reason is that "sealed" allows for some neat compiler
optimization.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a derived class in c#?

1041


Can an interface extend a class c#?

896


What namespace is list in c#?

864


What is meant by clr?

949


Why do we need properties in c#?

828


What do you use c# for?

874


Why is c# good for games?

896


Why linq is having select clause at the end?

866


Explain about Threading Types.

1007


What is the main usage of keyword “virtual” ? How does it work for a method or property?

876


What is the solution if you need to manipulate sets of items?

818


How many types of constructors are available in c#?

993


How do I calculate relative time?

877


Can we inherit partial class in c#?

871


What's the implicit name of the parameter that gets passed into the set method/property of a class?

941