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 the difference between virtual method and abstract method?

918


Is c# a technology?

853


What is dictionary and hashtable in c#?

877


What Is The Difference Between The System.array.copyto() And System.array.clone()?

956


what is the difference between .dll and .exe

968


What is tpl in c#?

835


What are the advantages of using c#?

887


What is the purpose of namespace in c#?

809


Which is faster array or arraylist in c#?

847


What are c# i/o classes? What are the commonly used i/o classes?

872


What are the differences between static, public and void in c#?

980


What is difference between int and int in c#?

888


Explain the constructor in c#.

1035


What is COM Interoperability?

909


What does assert() do in c#?

943