Another solution is to move that field to a separate class, where the construction process can guarantee that the correct initialization data is supplied by the user.
另外一个解决方案是把这个字段转移到一个单独的类中,这样构造过程可以保证用户可以提供正确的初始化数据。
Another solution is to move that field to a separate class, where the construction process can guarantee that the correct initialization data is supplied by the user.
另外一个解决方案是把这个字段转移到一个单独的类中,这样构造过程可以保证用户可以提供正确的初始化数据。
应用推荐