有什么方法可以利用隐式的拷贝构造函数初始化列表吗?有没有其他方式手动编写初始化列表吗?
Is there any way to make the implicit copy constructor use initialization lists? Is there any other way around manually writing the initialization list?
然后这个属性在构造函数中被初始化,如列表10所示。
The attributes then gets initialized in the constructor, as shown in the Listing 10.
此类在其构造函数中初始化DWR提供的org.directwebremoting.WebContext类的实例,然后向StockQuoteGenerator's侦听器列表注册自身。
This class in its constructor initializes an instance of the org.directwebremoting.WebContext class provided by DWR, and then registers itself with StockQuoteGenerator's list of listeners.
构造函数的初始化列表为类的一个或多个数据成员指定初值。
A constructor initializer list specifies initial values for one or more data members of the class.
没有在初始化列表中初始化的类成员,使用它们的默认构造函数隐式初始化。
Class members that are not initialized in the initializer list are implicitly initialized by using their default constructor.
在构造函数体现执行前,用初始化列表中指定的值初始化成员。
The members are initialized to the values specified in the initializer list before the body of the constructor executes.
托管类中不能有本身有成员初始化列表的静态构造函数。
A managed class cannot have a static constructor that also has a member initialization list.
catch子句既可以处理从成员初始化列表中抛出的异常,也可以处理从构造函数函数体中抛出的异常。
The catch clause can handle exceptions thrown either from within the member initialization list or from within the constructor body.
没有所带参数列表与初始化匹配的构造函数。
There is no constructor with a parameter list that matches the initialization.
没有所带参数列表与初始化匹配的构造函数。
There is no constructor with a parameter list that matches the initialization.
应用推荐