public class DbManager<T extends Dao> {
public DbManager(Context c) {
setCreateDatabaseScript(T);
}
public void setCreateDatabaseScript(T dao) {
this.createDatabaseScript = ((Dao)dao).createTable();
}
//..
}
我如何在构造函数内部调用 setCreateDatabaseScript。我尝试像示例但不工作。什么是正确的语法?