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 difference between throw and throws in c#?

0 Answers  


What is Assembly. and Describe type of assembly. why most developer happy with private assembly.

0 Answers   MCN Solutions,


What is Serialization and how do we implement (in real time scenario)

1 Answers  


Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?

0 Answers  


Give examples for value types?

0 Answers  


How we can create an array with non-default values?

0 Answers  


Explain the difference between passing parameters by value and passing parameters by reference with an example?

0 Answers  


Can you store strings in arrays?

0 Answers  


Is and as in c#?

0 Answers  


What is difference between value and reference types ?

4 Answers   Accenture,


What is the example of predicate?

0 Answers  


Is as operator in c#?

0 Answers  


Categories