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

How to implement a singleton design pattern in c#?

887


What is a dbml?

909


What is iqueryable and ienumerable in c#?

967


What is view model in c#?

857


Can we write class inside a class in c#?

974


What is the use of properties window?

1000


What is the full form of GAC? Explain its uses?

1018


What is window application in c#?

951


Which control cannot be placed in mdi?

982


Is stringbuilder faster than string concatenation c#?

923


Can we call server-side code (c# or vb.net code) from javascript?

948


Explain how can you clean up objects holding resources from within the code?

929


Can we create extension method for interface?

910


What is difference between array and arraylist c#?

1053


Is c# an open source language?

998