constructors and destructors(10.27)

来源:互联网 发布:剑倚天下神翼进阶数据 编辑:程序博客网 时间:2024/05/17 09:31

a drived class constructor can only sopecify initializers for its own member and the inmediat base.

class objects are constructed from the bottom up:first the base,then the member ,and then the drived class

itself.They are destroyed in the opposite orders. 

原创粉丝点击