Effective C ++ 侯捷译 条款20
开发环境采用:VS2013版本
首先:分析值传递的缺点 (一)class Person{ public: Person(); virtual ~Person(); private: std::string name; std::stringi address; }; class Student: public Persion{ public: Student(); ~Student(); private: std::string schoolName; std::string schoolAddress; };