Game Programming Gems 1中关于has a 和 is a的定义
2006-09-02 21:46
405 查看
The simple rule is this:If an object has an is-a relationship to another object,use public inheritance.If a has-a relationship describes the objects best,then use layering. What exactly do the term is-a and has -a mean?Pretty much exactly what they sound like.If we use them in a sentence,the meaning becomes clearer:
Class covette is -a type of class Car.
Class Corvette has-a type class Radio.
Class covette is -a type of class Car.
Class Corvette has-a type class Radio.
相关文章推荐
- 5.7 a simple method for rendering gemstones--game programming gems 5 笔记
- 电子书下载:Game Programming Gems 1
- improved frustum culling--game programming gems 5-1.6
- 5.10 recombinant shaders--game programming gems 笔记
- 电子书下载:Game Programming Gems 游戏编程精粹
- 5.1 realistic cloud rendering on modern gpus---game programming gems 5
- 电子书下载:Game Programming Gems 2
- Game Programming Gems 3 (Game Programming Gems Series)
- 5.2 let it snow--game programming gems 5 笔记
- 5.3 widgets:rendering fast and persistent foliage--game programming gems 5笔记
- 电子书下载:Game Programming Gems 8
- Game Programming Gems TOC (ZZ)
- Game Programming Gems 1读书笔记(1)
- 现在有谁买得到Game Programming Gems 1,2,3的中文版?
- Game Programming Gems 4 by Andrew Kirmse
- 关于mysql的符合主键的定义和解释
- 关于形如--error LNK2005: xxx 已经在 msvcrtd.lib ( MSVCR90D.dll ) 中定义--的问题分析解决
- 关于JSON.parse在ie6,ie7下未定义的issue
- 关于Excel Spreadsheet 对象的属性的定义
- 关于双向反射率BRDF的定义