C# Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 264 Page Views: 

Is it possible to override a private virtual method?



Posted By: Avi Date: 1 October 2010 11:52:31 AM
 Answer:

The naswer is no. Also Virtual or abstract methods can not have private as access modifier. Also private methods can not be inherited in inherited classes.


Posted By: avibtech


Date: 1 October 2010 11:52:31 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image 6FnFk3
Related Questions
C# : I want to set different access modifiers on get and set methods of a property. Is it possible to do this thing?

I want to set different access modifiers on get and set methods of a property. Is it possible to do ....

No, it is not possible , as access modifiers are applied to both set and get accessors. If still it ....
Category: C# Date: 10/1/2010 11:26:31 AM
C# : In C# out of internal and private what is the default access specifier of the class and member variable?

In C# out of internal and private what is the default access specifier of the class and member varia....

The access specifier at the class level is internal and at the method and member variable level it i....
Category: C# Date: 10/1/2010 11:25:31 AM
C# : How many Access specifiers are there in C#?

How many Access specifiers are there in C#?

There are 5 access specifiers in C#. They are as follows:- 1. public 2. private 3. protected 4. inte....
Category: C# Date: 10/1/2010 11:24:31 AM
C# : Can we have a variables inside the interface?

Can we have a variables inside the interface?

No, we can have only methods, properties, indexers and enums inside the interface.
Category: C# Date: 7/3/2010 1:54:37 PM
C# : What is static class and what is use of this?

What is static class and what is use of this?

Static class we define when we do not want to create a object of class, all methods of static class ....
Category: C# Date: 7/3/2010 1:54:06 PM