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

Can we allow a class to be inherited, but prevent the method from being overridden?



Posted By: Avi Date: 28 August 2009 06:59:11 AM
 Answer:

Yes. Define the class as public and make the method sealed.


Posted By: eTechPlanet


Date: 28 August 2009 06:59:11 AM

Define the class as Abstract


Posted By: swetha


Date: 23 September 2009 08:43:47 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image DLbTbE
Related Questions
.Net Framework : What is CLR and what is the task perform by CLR?

What is CLR and what is the task perform by CLR?

CLR stand for Common Language Runtime. It has following tasks: 1. Executing IL 2. Code Verificatio....
Category: .Net Framework Date: 7/3/2010 1:48:33 PM
.Net Framework : Explain Managed and Unmanaged Code in .Net?

Explain Managed and Unmanaged Code in .Net?

Managed code is code that has its execution managed by the .NET Framework Common Language Runtime. T....
Category: .Net Framework Date: 1/8/2010 1:57:09 PM
.Net Framework : What are the various types of applications we can develop using .Net Technology?

What are the various types of applications we can develop using .Net Technology?

1) Console applications 2) Windows GUI applications (Windows Forms) 3) Windows Presentation Founda....
Category: .Net Framework Date: 1/8/2010 1:29:07 PM
.Net Framework : What is an Application Pool?

What is an Application Pool?

Application Pool is a new features introduced in IIS 6.0 which is used to isolate ASP.Net Web appli....
Category: .Net Framework Date: 1/3/2010 11:36:33 AM
.Net Framework : What is Windows Presentation Foundation (WPF)?

What is Windows Presentation Foundation (WPF)?

Windows Presentation Foundation (WPF) is a graphical subsystem for rendering user interfaces in Wind....
Category: .Net Framework Date: 12/4/2009 11:50:11 PM