Can you override private virtual methods?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Answer / kanan
No we can not declare method as "Private Virtual".
Is This Answer Correct ? | 0 Yes | 0 No |
It will give compilation error because virtual functions
can't be private.
Is This Answer Correct ? | 0 Yes | 0 No |
Why we use anonymous methods in c#?
What is marker interface?
What are the two kinds of properties?
What is a shared assembly?
Describe the process of “exception handling implementation” in c#?
Why c# is called type safe language?
Is unboxing an implicit conversion?
What is uint64_t?
What does writeline mean?
What is Implicit conversion in C#?
What is a constructor in c#?
Contrast DTDs versus XSDs. What are their similarities and differences? Which is preferred and why ?