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

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 ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is platform independence"?

942


What floating point types is supported in C#?

1035


How is exception handling implemented in c#?

1046


What is the implicit name and type of the parameter that gets passed into the class set method?

877


When a switch is said to be congested?

1005


What is sqlconnection in c#?

928


What is a cshtml file?

1085


What's the c# syntax to catch any possible exception?

1066


What is join in c#?

937


Does c# support #define for defining global constants?

1030


What is garbage collection? How to force garbage collector to run?

905


Can an abstract class inherit from another abstract class c#?

952


Define a jagged array in c#?

903


How do you mark a method obsolete?

1007


What is a generic in c#?

927