阅读背景:

effective C++笔记之条款34: 将文件间的编译依赖性降至最低

来源:互联网 

1.    先看如下函数:
class Person
{
public:
        Person(const sting& name, const Date& birthday,
const Address& addr, const Country& country);
        virtual ~Person();
        string name() const;
        stirng birthDate() const;
        stirng address() const;
        string nationality() const;
    private:
        string name_;   //实现细节
        Date birthday_;  //实现细节
        Address address_;  //实现细节
        Country citizenship_; // 实现细节
    };class Person
{
public:
    



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: