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 the lock statement in c#?

1043


What is the difference between returning iqueryable vs ienumerable?

1038


How do you name a variable in c#?

969


Explain how many types of exception handlers are there in .net?

995


What does get set mean in c#?

977


How can I produce an assembly?

1087


What is throw in c#?

944


Can you describe iuknown interface in short?

1232


Is overriding of a function possible in the same class?

1011


What is difference between singleton and static class in c#?

1010


What is the use of 0 in c#?

1088


How do you pronounce c#?

954


What are the drawbacks of extending an interface as opposed to extending a class?

952


Is an interface a type c#?

1010


What is the difference between Java and .NET garbage collectors?

1084