一个C++类最少定义

来源:互联网 发布:php文件上传管理系统 编辑:程序博客网 时间:2024/06/06 09:26

class Foo

{

    Foo(){};//空构造

    ~Foo(){};//析构

    Foo(const Foo & other){..};//复制构造

    Foo& operator=(const Foo& other){};//赋值构造

}

 
原创粉丝点击