--接口,我要继承一个类:tablespublic interface T{
public Tables(string TableName, SqlConnection Connection);
public override string ToString();
public void LoadSchemaFromDB();
public virtual SyncResult Sync(int ObjectID, OperateType OType);
protected bool EnsureExistsByDB();
} 可以这么写吗?public interface T:tables{
public Tables(string TableName, SqlConnection Connection);
public override string ToString();
public void LoadSchemaFromDB();
public virtual SyncResult Sync(int ObjectID, OperateType OType);
protected bool EnsureExistsByDB();
}
该如何实现?
tables必需是interface另外:
public override string ToString();
public virtual SyncResult Sync(int ObjectID, OperateType OType);
protected bool EnsureExistsByDB();
这些东东也不可以。接口中不能有实现的代码,其方法只能为public