摘要:
99页导致较大封装性的是non-member non-friend函数,因为它并不增加“能否访问class内之private成分”的函数数量。 阅读全文
posted @ 2013-08-01 14:13
jeans chen
阅读(164)
评论(0)
推荐(0)
摘要:
将成员变量隐藏在函数接口的背后,可以为“所有可能的实现”提供弹性,假设我们有一个public成员变量,而我们最终取消了它,多少代码可能会被破坏呢?那是一个不可知的大量。protected成员变量就像public成员一样缺乏封装性(所有使用它的derived都会被破坏) 阅读全文
posted @ 2013-08-01 14:11
jeans chen
阅读(134)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2013-08-01 11:16
jeans chen
阅读(169)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2013-08-01 10:52
jeans chen
阅读(253)
评论(0)
推荐(0)
浙公网安备 33010602011771号