条款19:设计class犹如设计type
来源:互联网 发布:苹果序列号查询软件 编辑:程序博客网 时间:2024/06/14 17:03
// 条款19: 设计class犹如设计type// 1.新type的对象应该如何被创建和销毁?// 2.对象的初始化和对象的赋值应该有什么样的长别?// 3.新type的对象如果被passed by value,意味这什么?// 4.什么是新type的“合法值”?// 5.你的新type需要配合某个继承图系吗?// 6.你的新type需要什么样的转换?// 7.什么样的操作符和函数对此新type而言是合理的?// 8.什么样的标准应该驳回?// 9.谁该取用新type的成员?// 10.什么是新type的“未声明接口”?// 11.你的新type有多么一般化?// 12.你真的需要一个新type吗?
阅读全文
0 0
- 条款19:设计class犹如设计type
- 条款19:设计class犹如设计type
- 条款19:设计class犹如设计type
- 条款19:设计class犹如设计type
- 条款19:设计class犹如设计type
- 条款19 设计class 犹如设计type
- 条款19 设计class 犹如设计type
- 条款19:设计class犹如设计type
- Effective c++条款19:设计class犹如设计type
- 《Effect C++》学习------条款19:设计class犹如设计type
- 读书笔记《Effective C++》条款19:设计class犹如设计type
- 《Effective C++》学习笔记条款19 设计class犹如设计type
- Effective C++——》条款19:设计class犹如设计type
- 设计class 犹如设计type
- Effective C++(19) 设计class犹如设计type
- item19: 设计class犹如设计type
- Effective C++ Item19 设计class犹如设计type
- Effective C++ 学记之19 设计class犹如设计type
- Thread类源码分析
- [agc009d]Uninity
- 单例的7种写法
- 【单链表经典面试题解析四】用单链表实现约瑟夫环
- CentOS7设置中文
- 条款19:设计class犹如设计type
- 编程之旅之前端学习初体验
- CentOS xueliang is not in the sudoers file. This incident will be reported
- opencv2函数学习之threshold:实现图像阈值化 在opencv2中,threshold函数可以进行阈值化操作。 double threshold( const Mat& src, M
- file_put_contents 追加写
- OpenStack-Ocata (一)
- Scrapy在Ubuntu中的配置
- leetcode 15. 3Sum
- 条款20:宁以pass-by-reference-to-const替换pass-by-value