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 console device?

961


Is c# good for web development?

1020


What is difference between web and window application?

904


What is the difference between static and constant variables?

1128


What is the max value of int32 in c#?

963


What is polymorphism and its types in c#?

945


What is a web service in c#?

1223


Is c# front end or back end?

984


What is difference between property and variable in c#?

923


What is generic in c#?

906


Is c++ or c# better?

1001


How would you describe encapsulation in c#?

944


code for arranging given number in possible permutation ways ex:123,321,312,132,231,213.

2226


How to move to a state-related codebase?

1590


What is the use of ienumerable in c#?

1112