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 ControlBox Propertie

0 Answers   MCN Solutions,


Does google use c#?

0 Answers  


What does it meant to say “the canonical” form of XML ?

1 Answers  


Explain about Serialize and MarshalByRef?

0 Answers  


What is the difference between array and arraylist in c#?

0 Answers  


What is the difference between string and stringbuilder in c#?

0 Answers  


What is the differences between datagrid, datalist and repeater in .net?

0 Answers  


What is lazy loading entity framework?

0 Answers  


What is a must for multitasking

0 Answers   InterGraph,


What is the difference between firstordefault and singleordefault?

0 Answers  


What are the types of threading models ?

4 Answers   Digital GlobalSoft,


Why attributes are used in c#?

0 Answers  


Categories