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

Yes, that?s what keyword sealed in the class definition is
for. The developer trying to derive from your class will get
a message: cannot inherit from Sealed class
WhateverBaseClassName. It?s the same concept as final class
in Java

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is oledb in c#?

991


What is the difference between function and method in c#?

954


Explain “static” keyword in c#?

914


What is int16?

985


What are the different types of assembly?

1108


Do unused Namespaces in c# affect run-time performance?

1097


What is razor view in c#?

871


What is inumerable?

1121


What is string empty?

956


what is the difference between convert.tostring() and tostring() functions ?

1101


What are the basic string operations? Explain.

1009


How many bytes is a char c#?

937


What is difference between method and function in c#?

963


What is array formula?

955


What are the uses of namespaces?

1058