码迷,mamicode.com
首页 > 编程语言 > 详细

C++ Q&A

时间:2014-05-12 15:06:06      阅读:315      评论:0      收藏:0      [点我收藏+]

标签:class   c   http   strong   com   a   

Why can I access private variables in the copy constructor?

The access modifiers work on class level, and not on object level.That is, two objects of the same class can access each others private members. stackoverflow link

C++ Q&A,布布扣,bubuko.com

C++ Q&A

标签:class   c   http   strong   com   a   

原文地址:http://www.cnblogs.com/dpsincs/p/3720156.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!