boolan——c++学习笔记之类关系
来源:互联网 发布:windows打war包 编辑:程序博客网 时间:2024/06/05 06:28
类的的三种关系:1)继承(inheritance)2)复合(composition)3)委托(delegation)
1)继承(inheritance)
1、继承关系表现
2、继承关系的构造和析构
2)复合(composition)
1、复合关系表现及应用场景(adapter)
2、复合的构造和析构
3)委托(delegation)
1、委托关系表现,引用计数,写拷贝。
(继承(inheritance)+委托(delegation))应用:
1、设计模式——composite
2、设计模式——prototype
0 0
- boolan——c++学习笔记之类关系
- boolan——c++学习笔记1
- boolan——c++学习笔记之内存分配
- [Boolan]第一周学习笔记——rico风
- [Boolan]第二周学习笔记——rico风
- boolan——c++学习笔记之多态对象模型
- boolan——c++学习笔记之c++转换函数
- boolan——c++学习笔记之pointer-like classes
- boolan——c++学习笔记之STL简介
- boolan——c++学习笔记之容器
- boolan——c++学习笔记之容器探索
- boolan——c++学习笔记之STL哈希表探究
- boolan——c++学习笔记之STL迭代器分类
- boolan——c++学习笔记之设计模式一
- boolan——c++学习笔记之设计模式二
- boolan——c++学习笔记之设计模式三
- 《JAVA与模式》学习笔记之类图中的关系
- 《JAVA与模式》学习笔记之类图中的关系
- 存储过程拆分字符串
- node.js+mysql学习笔记
- CSS Reset
- 使用slf4j和Log4j构建日志
- 1
- boolan——c++学习笔记之类关系
- The Pilots Brothers' refrigerator高效贪心算法
- 操作系统 笔记(三)计算机体系结构,地址空间、连续内存分配(四)非连续内存分配:分段,分页
- git基础(三)-创建与合并分支
- 2
- linux学习笔记(二)进程管理
- 时间数值转换
- Python获取Shadowsocks账号
- 461. Hamming Distance