💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 6.继承与面对对象设计 Inheritance and Object-Oriented Design. [条款32:确定你的 public 继承塑模出 is-a 关系](/chapter06/section32.md) [条款33:避免遮掩继承而来的名称](/chapter06/section33.md) [条款34:区分接口继承和实现继承](/chapter06/section34.md) [条款35:考虑 virtual 函数以外的其他选择](/chapter06/section35.md) [条款36:绝不重新定义继承而来的 non-virtual 函数](/chapter06/section36.md) [条款37:绝不重新定义继承而来的缺省参数值](/chapter06/section37.md) [条款38:通过复合塑模出 has-a 或”根据某物实现出“](/chapter06/section38.md) [条款39:明智而审慎地使用 private 继承](/chapter06/section39.md) [条款40:明智而审慎地使用多重继承](/chapter06/section40.md)