2015年8月14日

【effective c++读书笔记】【第6章】继承与面向对象设计(4)

摘要: 条款39:明智而审慎的使用private继承1、如果classes之间的继承关系是private,编译器不会自动将一个derived class对象转换为一个base class对象。例子:#include#includeusing namespace std;class Person{protec... 阅读全文

posted @ 2015-08-14 14:07 ruan875417 阅读(152) 评论(0) 推荐(0)

导航