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

Why we use anonymous methods in c#?

0 Answers  


What is marker interface?

1 Answers   TCS,


What are the two kinds of properties?

10 Answers   Wipro,


What is a shared assembly?

0 Answers   Wipro,


Describe the process of “exception handling implementation” in c#?

0 Answers  






Why c# is called type safe language?

0 Answers  


Is unboxing an implicit conversion?

0 Answers  


What is uint64_t?

0 Answers  


What does writeline mean?

0 Answers  


What is Implicit conversion in C#?

0 Answers  


What is a constructor in c#?

0 Answers  


Contrast DTDs versus XSDs. What are their similarities and differences? Which is preferred and why ?

1 Answers  


Categories