03 C++中複合、委託和繼承的基本用法

1、引言 本篇內容主要是介紹C++中類與類之間Composition(複合)、Delegation(委託)和Inheritance(繼承)的基本設計模式,如Adapter、pimpl、Template Method、Observer、Composite和Prototype。 2、Composition的用法 1) Contaner與Compoent 2)兩者間關係 注意點: a、這是一種Adapt
相關文章
相關標籤/搜索