摘要: 复合(composition)是类型之间的一种关系,当某种类型的对象内含它种类型的对象,便是这种关系: class Address {...}; class PhoneNumber {...}; class Person { public: ... private: std::string name;//合成成分物 ... 阅读全文
posted @ 2012-02-12 20:36 lidan 阅读(491) 评论(0) 推荐(0)