Can private virtual methods be overridden in C#.NET?

Can private virtual methods be overridden in C#.NET?

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

Can you override private virtual methods?

First of all private methods in the inherited class can't be accessed, so there is no question of overriding of private virtual methods.
Is is possible to force garbage collector to run? - C#.NET
C#.NET - Is is possible to force garbage collector to run? - we can force garbage collector to run using System.GC.Collect(). ...
Role of data provider in ADO.NET - C#.NET
C#.NET - What is the role of data provider in ADO.NET? - ADO.NET supports the following OLE DB Providers...
Describe how a .Net application is compiled and executed - C#.NET
C#.NET - .Net application compilation and execution - Compilation can be done with Debug or Release configuration...
Post your comment