Overriding methods in a child class

M

mrferg

Define class A with a method - public virtual void x(){...}.
Define class B as inheriting from A.
If I try to define an override to method x in B, the new keyword is
included in the generated code. (C#) (i.e., public new void x(){...} or
public new override void x(){...}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top