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?

Answers were Sorted based on User's Feedback



Can you prevent your class from being inherited and becoming a base class for some other classes?..

Answer / shantanu singh patel

Yes you can make it by using Sealed keyword.

No when your class in Sealed you cant inherit the class
then the question of base class for some other class is not
significant.

Thanks and Regards,
Shantanu

Is This Answer Correct ?    9 Yes 0 No

Can you prevent your class from being inherited and becoming a base class for some other classes?..

Answer / sharif

when a class is sealed it not possible to access the
members of the base call to the derived class?
wat happend when i use insted of sealed, am using the static

Is This Answer Correct ?    5 Yes 0 No

Can you prevent your class from being inherited and becoming a base class for some other classes?..

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

More C Sharp Interview Questions

What is Delay Signing?

1 Answers   ACS,


What is polymorphism c# example?

0 Answers  


Why do we need collections in c#?

0 Answers  


t name of controls, which are displayed same in all browers?

1 Answers   TCS,


What is a hash table in c#?

0 Answers  


Did a generic class can be inherited by a normal class?

1 Answers   TCS,


Is as keyword in c#?

0 Answers  


Difference between string and stringbuilder?

3 Answers   HCL, Siemens, TCS,


Give an example to show for hiding base class methods?

0 Answers  


What is the difference between delegates and superdelegates?

0 Answers  


hi all.... i need code snippets for store and retrive tiff fromat images in sqlserver....... kindy provide it.......

0 Answers   Tricom,


Can we inherit two classes in c#?

0 Answers  


Categories