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 / dhanunjaya

yes,By using a keyword called "sealed".a sealed class can
never be a base class for any class,it is the bottom most
class in a class hierarchy.......so it cant be be base
class further more....

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is continue in c#?

997


Explain the different ways a method can be overloaded?

881


What is Named parameter in C#?

1008


Explain the difference between the debug class and trace class?

899


Explain code compilation in c#.

970


What is int16?

935


Is array passed by reference in c#?

969


Do we get an error while executing the “finally” block in c#?

961


Why References are stored on heap and variables on stack?

945


Define constructor in c#.

912


Does main have to be static c#?

1084


What are async and await?

949


What is a helper method in c#?

939


What do you mean by serialization in .NET?

1031


Does c# support try-catch-finally blocks?

884