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 ?    11 Yes 0 No

Can you declare the override method static while the original method is non-static?..

Answer / kishore.a

To override an method we need to explicitly mention
override keyword in the child class and virtual or abstract
keyword in base class.

Here in this case neither of the keywords are used.Hence it
is not possible..

Is This Answer Correct ?    6 Yes 0 No

Can you declare the override method static while the original method is non-static?..

Answer / ashish gupta

I don think so...
even static members can not be marked as a virtual,abstract
or override.

Is This Answer Correct ?    5 Yes 0 No

Can you declare the override method static while the original method is non-static?..

Answer / saubhagya

No

Is This Answer Correct ?    3 Yes 0 No

Can you declare the override method static while the original method is non-static?..

Answer / kishore

No we cannot declare ovverride method of static while the
first one is non static..

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C Sharp Interview Questions

How long will it take to learn c sharp?

0 Answers  


What statements can enclose a "continue" statement?

3 Answers   Fortech,


Is Multiple-inheritance supported by c#?

0 Answers   Siebel,


What do you mean by object pooling?

0 Answers  


What is the difference between array and arraylist c#?

0 Answers  






What is private and shared assembly?

0 Answers  


How to sign an assembly with strong name?

0 Answers   CitiusTech,


What is InterFace???

12 Answers  


How big is a 64 bit integer?

0 Answers  


What is difference between private, protected, and public in C#?

0 Answers   B-Ways TecnoSoft,


What is the difference between disposing of () and finalize() methods in c#?

0 Answers  


Write one code example for compile time binding and one for run time binding? What is early/late binding?

0 Answers  


Categories