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

Can you prevent your class from being inherited and becoming
a base class for some other classes?

Answer Posted / neerajtyagi

You can prevent your class being derived using sealed
keyword.

But you can't use that class as base class once you make
that sealed.

Sealed and Derived both are opposite.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create multiple constructors?

908


What is interface used in c#?

1025


Why do we use constructors in c#?

1122


What is the main purpose of xml?

931


What is ispostback c#?

889


Okay, so an int is a value type, and a class is a reference type. How can int be derived from object?

945


How do I use the 'using' keyword with multiple objects?

960


What is the difference between virtual method and abstract method?

986


What is scaffolding in c#?

947


Is there regular expression (regex) support available to c# developers?

975


Is Facebook a desktop application?

917


I wish to create a windows application to perform a similar function as that of the "Search" which is provided to look for related files and folders in the System.. What steps must i follow??

1928


Explain clr in brief.

961


What are the different approaches of passing parameters to a method?

974


How more than one version of an assembly can keep in same place?

975