C++ styles
来源:互联网 发布:北京博彦网鼎java面试 编辑:程序博客网 时间:2024/06/09 23:35
1. An entity (function, class, etc) only has one compact responsibility.
design small class, and seperate incompact functions.
2. Use 'const' as more as possible.
for example:
3. Always initialize variables.
For example:
4. derivation is 'is-a' relation, which means 'words-like-a'
5. hide overloading functions.
For example
The method foo(int, int) and foo() are hidden after derivation. The solution is to add one sentence 'using A::foo' into B (just remove the comment tag in above example ) .
- programing c: styles
- styles
- styles
- Styles
- google c++ styles和华为C语言编程规范总结
- Get Styles
- Window Styles
- C++ styles
- DIALOG styles
- Button Styles
- Programming Styles
- Tooltip Styles
- styles.xml
- styles inheritance
- @Styles.Render
- Window Styles
- Windows Styles
- Window Class Styles 与 Window Styles
- vmstat命令详解
- Java培训笔记三
- 利用DBCONSOLE定位No ManagedConnections available问题
- 求教各位大侠,在数据库连接的时候,出现error: 26 - 定位指定的服务器/实例时出错,紧急救助!
- FLEX实例:几款滤镜效果实例.
- C++ styles
- MATLAB生成COM调用异常—没有找到mclmcrrt73.dll
- 大家好
- 正则表达式使模式匹配和数据提取变得更容易(David Banister)
- Java培训笔记四(开始正式培训)
- "/n"和"/012"还有"/015/012" 是什么
- Struts2工作原理(转)
- Java培训笔记五
- power law,small world,bow-tie理论