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

Can a struct inherit from another struct or class in c#?

0 Answers  


what are nullable types in c#

0 Answers   Cognizant,


Write the sample code for threading in c# .net..

4 Answers   Logica CMG,


what happens if you inherit multiple interfaces and they have conflicting method names?

0 Answers   Siebel Systems,


What are the delegates in c#?

0 Answers  






Does main have to be static c#?

0 Answers  


What are some examples of desktop applications?

0 Answers  


Can enum have methods c#?

0 Answers  


Explain copy constructor?

0 Answers   Accenture,


What is inline function in c#?

0 Answers  


What is datareader c#?

0 Answers  


What is public, private, protected, internal and internal protected?

0 Answers   QuestPond,


Categories