은 다음과 같이 수행 할 수 있는가 :인터페이스 타입 메서드 매개 변수 구현
interface IDBBase {
DataTable getDataTableSql(DataTable curTable,IDbCommand cmd);
...
}
class DBBase : IDBBase {
public DataTable getDataTableSql(DataTable curTable, SqlCommand cmd) {
...
}
}
을 내가 구현하는 인터페이스를 사용하고자하는 D/t 제공 업체 (MS-SQL, 오라클 ...); 거기에는 그것을 구현하는 해당 클래스에서 구현 될 몇 가지 서명이 있습니다. 나는 또한이 같은 시도 :
genClass<typeOj>
{
typeOj instOj;
public genClass(typeOj o)
{ instOj=o; }
public typeOj getType()
{ return instOj; }
...
interface IDBBase
{
DataTable getDataTableSql(DataTable curTable,genClass<idcommand> cmd);
...
}
class DBBase : IDBBase
{
public DataTable getDataTableSql(DataTable curTable, genClass<SqlCommand> cmd)
{
...
}
}
그리고 질문은 무엇입니까? –