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 / guest

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 0 No

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

Answer / sanjay

No!!!

Is This Answer Correct ?    0 Yes 0 No

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

Answer / mahesh babu ummaneni

when we use virtual key word for method in base class the same thing is used under the derived class just we can change the virtual to override

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is a constructor in c#?

0 Answers  


Is stringbuilder faster than string concatenation c#?

0 Answers  


What is event sourcing in c#?

0 Answers  


Explain manifest & metadata?

5 Answers   IBM, Wipro,


What basic steps are needed to display a simple report in crystal?

0 Answers  






Is c# code is unmanaged or managed code?

0 Answers  


What is asax file in c#?

0 Answers  


Is c# dictionary a hash table?

0 Answers  


What is a destructor in c#?

0 Answers  


Is stringbuilder thread safe c#?

0 Answers  


What is an object and a class?

0 Answers  


What is the CTS, and how does it relate to the CLS?

0 Answers   Arigo Infotech,


Categories