(手动初始化内置类型的非成员对象,因为C++只偶尔会初始化它们)。
Manually initialize non-member objects of built-in types, because C++ only sometimes initializes them itself.
要确保对链中所有类的正确初始化,实现者必须手动编写超类方法调用的代码,如清单 11 所示。
To guarantee the correct initialization for all the classes in the chain, the implementer must manually code the superclass method invocation as shown in Listing 11.
像工具箱上的其它控件一样,你可以让Visual Studio . NET处理其生成或者你自己手动的实例和初始化这个类。
Like all other controls in the toolbox, you can either let Visual Studio.net handle the plumbing or you can manually instantiate and initialize the class yourself.
应用推荐