实例化构造函数问题
Soldier soldier; Person p = soldier 为什么只调用一次person构造函数,
而Soldier = soldier; Person p; p = soldier 调用了2次Person构造函数?
Soldier soldier; Person p = soldier 为什么只调用一次person构造函数,
而Soldier = soldier; Person p; p = soldier 调用了2次Person构造函数?
2018-03-19
举报