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 add controls dynamically to the form using c#.net.
Which are access modifiers available in c#?
How do you convert byte array to hexadecimal string, and vice versa?
Can the accessibility of a type member be greater than the accessibility of its containing type?
What is the difference between Singleton design pattern and Factory design pattern?
What is the advantage of dependency injection?
How many variables do you need?
What is yield break in c#?
1)what is timestamp in C# (anilringole@gmail.com)
Define satellite Assembly?
From which base class do all Web Forms inherit from?
Can we create instance for Abstract class?
28 Answers HCL, Satyam, SoftSol, Wipro,
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)