Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Can we override private virtual method in C#?
Home
C Sharp
Can we override private virtual method in C#?
0
votes
asked
Oct 18, 2019
in
C Sharp
by
Robin
Can we override private virtual method in C#?
private-virtual-method
private-virtual
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 18, 2019
by
rajeshsharma
No. We can’t override private virtual methods as it is not accessible outside the class.
Related questions
+1
vote
Q: Can a private virtual method can be overridden?
asked
Apr 9, 2020
in
C Sharp
by
GeorgeBell
#dotnet
#chash
#basicc#
0
votes
Q: What does the “static” keyword mean? Can you override private or static method in Java?
asked
Jul 2, 2023
in
JAVA
by
rajeshsharma
static-keyword
jsppage
abstract
continue
for
new
switch
assert
default
goto
package
synchronized
boolean
do
if
private
this
break
double
implements
protected
throw
byte
else
import
public
throws
case
enum
instanceof
return
transient
catch
extends
int
short
try
char
final
interface
static
void
class
finally
long
strictfp
volatile
const
float
native
super
while
0
votes
Q: Can we use delegates for asynchronous method calls in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
c#-delegates
delegates
0
votes
Q: Can we use “this” inside a static method in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
this-c#
c#-this
+1
vote
Q: Can a private virtual method be overridden?
asked
Jun 25, 2019
in
Dot Net
by
Venkatshastri
#dotnet
#basicc#
#chash
0
votes
Q: How we can sort the array elements in descending order in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
sort-array
array-sort
0
votes
Q: Can we have only “try” block without “catch” block in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
try-c#
c#-try
c#-catch
catch-c#
0
votes
Q: Can we execute multiple catch blocks in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
multiple-catch-blocks
catch-block-c#
0
votes
Q: Is it possible to override the private methods in Java?
asked
Feb 9, 2021
in
JAVA
by
SakshiSharma
#private-methods
java-private-methods
java-methods
Java-questions-answers
0
votes
Q: What is the difference between method overloading and method overriding in C#?
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
#method-overloading
...