Can you override private virtual methods?

Answers were Sorted based on User's Feedback



Can you override private virtual methods?..

Answer / guest

No, moreover, you cannot access private methods in inherited
classes, have to be protected in the base class to allow any
sort of access

Is This Answer Correct ?    2 Yes 0 No

Can you override private virtual methods?..

Answer / dsp

When you specify Virtual method as a private member it will
gives compilation error.So u on't

Is This Answer Correct ?    2 Yes 0 No

Can you override private virtual methods?..

Answer / naveen

As a private acess level is visible to current class only
it will be meaning less to specify vitual method and more
over it must generate a compilation error.

Is This Answer Correct ?    1 Yes 0 No

Can you override private virtual methods?..

Answer / kanan

No we can not declare method as "Private Virtual".

Is This Answer Correct ?    0 Yes 0 No

Can you override private virtual methods?..

Answer / sudhir sheoran

It will give compilation error because virtual functions
can't be private.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What are boxing and unboxing?

0 Answers  


What is global asax in c#?

0 Answers  


What is the relationship between a process, application domain, and application?

0 Answers  


What is the use of static members with example using c#.net.

0 Answers  


what are windows services?

0 Answers  






What is class sortedlist underneath?

0 Answers  


how to return morethan one value using out parameter in c#.net ; For Example : public int show(out int []a) { int []a={1,2,3,4,5}; return a[]; } we have to print all the values without using the Console.WriteLine statement;

1 Answers   Verizon,


What is a class level variable in c#?

0 Answers  


How do I develop c# apps?

0 Answers  


What is enum in c#?

0 Answers  


in a town the percentage of total men is 52. the percentage of total literacy is 48. if total percentage of literate men is 35 of total population. write a program to find out the total no of illiterate men and women.

3 Answers   HCL,


Is c sharp open source?

0 Answers  


Categories