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

What is different between Static Constructor and Private Constructor?

992


What is namespace explain with example?

858


What is the difference between namespace and class?

940


Can abstract class be sealed?

877


What is typeof c#?

953


What .exe means?

891


What is an array class?

1104


What do you mean by sealed classes and static classes?

990


What is the advantage of constructor in c#?

903


What are accessors?

999


What is c# most used for?

975


How to parse a date time string?

1002


How can you use abstract class and interface?

1134


What do you mean by string objects are immutable?

996


What is the use of tuple in c#?

924