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

How do I move from one form to another in c#?

893


Is c# different than c++?

885


What are different types of Delegates in C#?

1019


what is a enumeration in c#

1045


How can you read 3rd line from a text file?

997


Explain Direct CAST vs CType ?

1045


What do you know about WM_CHAR message?

982


How many variables do you need?

928


What is session variable in c#?

1011


What is difference between constants and read-only?

945


Why ref is used in c#?

892


Why do we need to call CG.SupressFinalize?

988


How can I check the type of an object at runtime?

966


Difference between a sub and a function in c#.

971


How to declares a two-dimensional array in C#?

1025