我有一个继承模式,如下所示:
public abstract class BaseAttachment
{
    public abstract string GetName();
}
public abstract class BaseFileAttachment:BaseAttachment
{
    public abstract string GetName();
}
public class ExchangeFileAttachment:BaseFileAttachment
{
    string name;
    public override string GetName()
    {
        return name;
    }
}
我基本上想调用 ExchangeFileAttachment 类的 GetName() 方法;但是,上面的声明是错误的。对此的任何帮助表示赞赏。谢谢