派生类的构造 meaning in Chinese
constructing derived classes
Examples
- The constructor on each derived class is using its base class initializer
每个派生类的构造函数都使用其基类的初始值设定项。 - Use the constructors of derived classes to get an instance with different settings ; for example , the
使用派生类的构造函数来获取带有不同设置的实例。例如, - Method must be called at the end of the constructor for derived classes to complete the initialization of the
给继承者的说明必须在派生类的构造函数的末尾调用 - If you override the base class constructor , you should explicitly call it in the constructor of your derived class
如果重写基类构造函数,则应在派生类的构造函数中显式调用它。