Constructor functions (also called constructors) provide the ability to design and implement your own prototype-based objects.
构造函数提供了一种能力,使用户能设计和实现自己的基于原型的对象。
The object-pool interface needs the type information, because constructors are called.
object - pool接口需要类型信息,因为要调用构造函数。
Then, inside the generic class definition, the only constructors that could be called are those declared in the bound.
因而,在泛型类定义内部,唯一可调用的构造函数是那些在界限中声明的构造函数。
应用推荐