关闭

17.10.2 Instance variable initializers

579人阅读 评论(0) 收藏 举报
When an instance constructor has no constructor initializer, or it has a
constructor initializer of the form
base(?), that constructor implicitly performs the initializations specified
by the variable-initializers of the
instance fields declared in its class. This corresponds to a sequence of
assignments that are executed immediately
upon entry to the constructor and before the implicit invocation of the
direct base class constructor. The variable
initializers are executed in the textual order in which they appear in the
class declaration.
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:569964次
    • 积分:11515
    • 等级:
    • 排名:第1387名
    • 原创:565篇
    • 转载:0篇
    • 译文:0篇
    • 评论:50条
    文章分类