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 are the applications of c#?

0 Answers  


what class is underneath the sortedlist class?

0 Answers   Siebel Systems,


may we achieve polyphormsm through overloading a funtion?Is it right or wrong concept because i read polyphormism can be achieved through overloading?plz help me thnks

1 Answers  


What is Lambda Expression?

1 Answers  


These questions were asked me in a technical interview: •If we deploy an application on multiple server (like database server, web server) then, each request should be redirected to proper server, then how you will handle it in your code? •How security pinholes will be handled in an application? •What things should be considered while writing a web application? •How will you do load/performance testing of web application? Which framework you will use for it? •How will you implement a cache for results which require a DB access? Please let me know how to write an web application considering all these points. I am not so much aware of architechural design of web application. Your guidelines will be helpful.

0 Answers   TCS,






What is the difference between yield and return?

0 Answers  


Why reflection is used in c#?

0 Answers  


How do you secure a webservice?

1 Answers   TCS,


What is regex c#?

0 Answers  


How does dictionary work in c#?

0 Answers  


what is a constructor? What is a destructor?

0 Answers  


What are the uses of delegates in c#?

0 Answers  


Categories