.Net Framework Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 1987 Page Views: 

Can we prevent a class from being inherited by another class in C#?



Posted By: Avi Date: 28 August 2009 06:48:43 AM
 Answer:

Yes. The keyword "sealed" is used to prevent a class from being inherited.


Posted By: eTechPlanet


Date: 28 August 2009 06:48:43 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image 1Bsgwg
Related Questions
.Net Framework : What is a strong name in .Net?

What is a strong name in .Net?

A strong name includes the name of the assembly, version number, culture identity, and a public key ....
Category: .Net Framework Date: 8/29/2009 7:39:06 AM
.Net Framework : What is a satellite assembly in .Net?

What is a satellite assembly in .Net?

Shared assembly contains resources specific to a given language/culture. Using satellite assemblies,....
Category: .Net Framework Date: 8/29/2009 7:33:53 AM
.Net Framework : What is a shared assembly in .Net?

What is a shared assembly in .Net?

A shared assembly is an assembly that is available for use by multiple applications on the computer.....
Category: .Net Framework Date: 8/29/2009 7:24:19 AM
.Net Framework : What is private assembly in .Net?

What is private assembly in .Net?

A private assembly is an assembly that is deployed with an application and is available for the excl....
Category: .Net Framework Date: 8/29/2009 7:19:01 AM
.Net Framework : What are the various types of assemblies in .Net?

What are the various types of assemblies in .Net?

There are three types of assemblies in .Net: 1. Private Assembly 2. Shared Assembly 3. Satellite Ass....
Category: .Net Framework Date: 8/29/2009 7:14:17 AM