您的位置:首页 > 编程语言 > C语言/C++

C++空类的默认成员函数总结

2011-04-15 10:01 344 查看
http://c.chinaitlab.com/cc/basic/200906/787382.html

class Empty
{
public:
Empty(); // 缺省构造函数

Empty(const Empty&); // 拷贝构造函数

~Empty(); // 析构函数

Empty& operator=(const Empty&); // 赋值运算符

Empty* operator&(); // 取值运算符
const Empty* operator&() const; // 取值运算符

};
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: