摘要: Item 32 demonstrates that C++ treats public inheritance as an is-a relationship. It does this by showing that compilers, when given a hierarchy in whi 阅读全文
posted @ 2021-12-03 18:04 MyCPlusPlus 阅读(157) 评论(0) 推荐(0)
摘要: Item 32 explains that public inheritance means "is-a." Composition has a meaning, too. Actually, it has two meanings. Composition means either "has-a" 阅读全文
posted @ 2021-12-03 18:03 MyCPlusPlus 阅读(48) 评论(0) 推荐(0)