Interview Questions

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

C# Interview Questions and Answers


(Continued from previous question...)

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

No, you cannot, the signature of the virtual method must remain the same, only the keyword virtual is changed to keyword override

(Continued on next question...)

Other Interview Questions