C# (Sharp) Programming Language Question:

Download Job Interview Questions and Answers PDF

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

C# (Sharp) Programming Language Interview Question
C# (Sharp) Programming Language Interview Question

Answer:

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

Download C# (Sharp) Programming Language Interview Questions And Answers PDF

Previous QuestionNext Question
Can you store multiple data types in System.Array?Does C# support multiple inheritance?