#include<iostream.h>
class student
{
private:
int a;
int b;
public:
student()
{cout<<"student";}
~student()
{cout<<"student";}
};
class emp
{
private:
int c;
int d;
public:
emp()
{cout<<"emp:";}
~emp()
{cout<<"emp";}
};
class mm
{
private:
int aa;
int bb;
student student1;emp emp1;
public:
mm():emp1(),student1(),aa(0),bb(0)
{}
};
int main()
{
mm vv;
return 0;
}
没有合适的资源?快使用搜索试试~ 我知道了~
聚合中类的构造函数调用顺序
共7个文件
plg:1个
opt:1个
doc:1个
需积分: 9 6 下载量 16 浏览量
2008-12-04
20:44:40
上传
评论
收藏 10KB RAR 举报
温馨提示
上课的时候老师特别的强调了这个,所以传上来分享一下
资源推荐
资源详情
资源评论
收起资源包目录
.rar (7个子文件)
九章
聚合中类的构造函数调用顺序说明.doc 20KB
聚合中类的构造函数调用顺序
九章.ncb 33KB
jiuzhang.cpp 425B
Debug
九章.plg 1KB
九章.dsp 4KB
九章.dsw 533B
九章.opt 49KB
共 7 条
- 1
资源评论
yymhlq
- 粉丝: 9
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功