jeans chen
we've got them by the balls

187页

private继承意味implementedin-terms-of(根据某物实现出)。如果你让class D以private形式继承class B,你的用意为了采用class B内已经备妥的某些特性,不是因为B对象和D对象存在有任何观念上的关系。Private继承纯粹是一种实现技术,(这就是why继承自一个private base class的每样东西在你的class内都是private:因为他们都只是实现枝节而已。)

Private继承在软件“设计”层面上没有意义,其意义只及于软件实现层面。

 

 

 

 

懒了 不想继续看了。。。。。。哈哈哈哈和黑黑

 

 

posted on 2013-10-14 15:50  jeans chen  阅读(188)  评论(0编辑  收藏  举报