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

Is it possible to override private virtual methods?



Posted By: Avi Date: 28 October 2009 05:36:41 AM
 Answer:

It's not possible to declare a method as 'private virtual'. So overriding private virtual method does'nt make sense.


Posted By: eTechPlanet


Date: 28 October 2009 05:36:41 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image TUVLuq
Related Questions
C# : How do you declare explicit conversion operator in c#?

How do you declare explicit conversion operator in c#?

public static explicit operator SampleClass(string obj){ }
Category: C# Date: 10/14/2010 1:32:32 AM
C# : What will be the result of the following code:
for(int I = 0; I <2; i++)
for(int j = 0; j <2; j++)
{
if(j==1) break;
Console.Write(i*j);
}
C# : Is this code valid?
Class T { public void CloneT(T obj) { this = obj; }}

Is this code valid? Class T { public void CloneT(T obj) { this = obj; }}

No you cannot assign anything to this.
Category: C# Date: 10/14/2010 1:22:47 AM
C# : How do you use random number generator in c#?

How do you use random number generator in c#?

Random r = new Random(); double t = r.NextDouble();
Category: C# Date: 10/14/2010 1:12:47 AM
C# : What would be the type of variable x? 
var x = new int[] {4,5,6};

What would be the type of variable x? var x = new int[] {4,5,6};

System.Int32[]
Category: C# Date: 10/14/2010 12:20:46 AM