...承函数执行前,必须先执行父类的继承函数,直至最后执行Object的构造函数,这个过程成为“构造函数链”(constructor chaining);调用父类的构造函数用super(),调用类中的重载构造函数用this(),而由于super()和this()语法上都要求放在构造函数的第一行,所...
基于12个网页-相关网页
使用构造函数链而不是创建公用的有用子程序。
Use constructor chaining instead of creating a common utility routine.
在类似于过滤器链的结构中,构造函数中包含一系列的Message Handler对象。
In a construct similar to filter chaining, it takes a list of MessageHandler objects in the constructor.
信道接收器提供程序存储在一个链中,在向信道构造函数传递外部信道接收器提供程序之前,用户负责将所有的信道接收器提供程序链接在一起。
Channel sink providers are stored in a chain, and the user is responsible for chaining all channel sink providers together before passing the outer one to the channel constructor.
应用推荐