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

Is constructor a static method?

0 Answers  


What is the use of ienumerable?

0 Answers  


What is super class in c#?

0 Answers  


What are c# attributes and its significance?

0 Answers  


When To use HashTable In C#

0 Answers   Infosys,






What is console readkey in vb net?

0 Answers  


How will you get the different language strings?

0 Answers  


What is the xml document structure?

0 Answers  


write code for inserting and updating recoards in sql server database using connected architecture & records shoulds displayed in grid view ( use c# )

0 Answers  


How do you generate documentation from the C# file commented properly with a command-line compiler?

1 Answers  


Can fields inside a class be virtual?

0 Answers  


What do you mean by parsing and how to parse a date time string in c#?

0 Answers  


Categories