public class Sample<T>{ T data; Sample(){ data = ????; } }
我如何为数据分配默认值?
public class Sample<T> { T data; Sample(T data) { this.data = data; } }