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 an arraylist in c#?

0 Answers  


Is c# a backend language?

0 Answers  


What are examples of desktop applications?

0 Answers  


What is data annotation in c#?

0 Answers  


Which namespaces are necessary to create a localized application?

0 Answers   MindCracker,






What is var c#?

0 Answers  


How do you pass reference parameters in c#?

0 Answers  


What?s the implicit name of the parameter that gets passed into the class? set method?

1 Answers  


What is exe file in c#?

0 Answers  


What is c# console application?

0 Answers  


Is string null or empty?

0 Answers  


What is datatable and dataset in c#?

0 Answers  


Categories