首页 > 编程语言 > 详细

C++ Q&A

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

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!