Can you declare the override method static while the
original method is non-static?

Answers were Sorted based on User's Feedback



Can you declare the override method static while the original method is non-static?..

Answer / umesh

No, you can?t, the signature of the virtual method must
remain the same, only the keyword virtual is changed to
keyword override.

Is This Answer Correct ?    6 Yes 1 No

Can you declare the override method static while the original method is non-static?..

Answer / kiran

A static member cannot be marked as override, virtual, or
abstract

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is the use of partial methods?

0 Answers  


How many types of constructors are there in c#?

0 Answers  


Is an array an object c#?

0 Answers  


Can you instantiate an abstract class c#?

0 Answers  


How can we insert 100 records @ a time without using for loop into the databse

10 Answers   IBM,






write a C# Program add two matrix ?

0 Answers   Wipro,


Why would you use untrusted verification?

0 Answers  


How to create multi-dimensional array?

0 Answers   C DAC, CDAC,


What does return do in unity?

0 Answers  


What is regex c#?

0 Answers  


What is service contract

2 Answers   Synechron,


Explain manifest & metadata.

2 Answers   Wipro,


Categories