Yes it is possible. Just use the
new
keyword. It will hide the implementation of the base class method.
public class GoldCustomer : Customer
{
public new string Print() {
return "You are a Gold Customer: " + CustomerName;
}
}
<edit> I think I understood your question wrong. You must use one of
new
/
override
keywords if you have described a method to be
abstract
. It must have an implementation in the derived class.