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

Define an abstract class?

858


Does c# support multilevel inheritance?

831


Why do I get an error (cs1006) when trying to declare a method without specifying a return type?

895


What is default value of enum c#?

840


I need code to connect ohter systems in the LAN and i want to display my website image over there and i want explain as a admin through phone. So i need code to access other system using C-Sharp. Any one please help me.Please give me the code. Advace thanks.

1846


Can scriptable objects have methods?

837


What does type safety mean?

1007


What are the value types in c#?

897


Can we write class inside a class in c#?

899


Explain About Global.asax

914


How can it prevents DLL Hell assembly versioning in .NET?

966


What is the difference between array and list in c#?

936


What is the difference between mobile application and desktop application?

828


Explain the top reason to use c# language?

884


If a child class instance is created, which class constructor is called first - base class or child class?

872