cpp/object_oriented/initialization_and_destruction_order #53
Replies: 1 comment 1 reply
-
补充一点: 初始化优先级:如果成员对象在声明时进行了初始化,并且在构造函数的初始化列表中也进行了初始化,构造函数的初始化列表中的初始化会覆盖声明时的初始化。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
cpp/object_oriented/initialization_and_destruction_order
编程指北: 计算机系统学习指南, 操作系统, 计算机网络, C++, Java, 算法, 数据结构
https://csguide.cn/cpp/object_oriented/initialization_and_destruction_order.html
Beta Was this translation helpful? Give feedback.
All reactions