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 |
How to implement an object pool in c#.net.
What are the advantages of properties in c#?
What is semaphore in c#?
Can abstract class instantiated c#?
What is a type c#?
What is mvc pattern in c#?
What are the types of access modifiers?
What Is A Multicast Delegate?
What are async and await?
Is an interface a type c#?
Did a generic class can be inherited by a normal class?
What's the difference between a static method and a non static method c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)