how to do this?# Java - 爪哇娇娃
b*d
1 楼
i have a generic class
class Dummy {
public Dummy() {
}
private T dummy;
}
how to instantiate the dummy field in ctor? how to achieve "new T()" like in c+
+?
class Dummy
public Dummy() {
}
private T dummy;
}
how to instantiate the dummy field in ctor? how to achieve "new T()" like in c+
+?