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 download a program to my desktop?

879


What is the difference between delegates and events in c#?

994


Explain the access modifiers in c#?

954


List the two important objects of ado.net and also list the namespaces that are commonly used in ado.net to aid in connection to a database.

906


Define a class and an object?

993


What is namespace in oop?

936


Why generics are used in c#?

962


how background thread access to ui control?

1054


What is local function?

943


What is array and arraylist?

1046


If a.equals(b) is true then a.gethashcode & b.gethashcode must always return same hash code.

1020


What is generic delegate in c#?

933


What is oledbconnection c#?

925


How to reduce image resolution in C#?

1083


How do I start a program in c#?

996