您的位置:首页 > 移动开发 > Objective-C

Item 12: Copy all parts of an object(Effective C++)

2010-01-04 22:01 686 查看
Copying functions should be sure to copy all of an object's
data members and all of its base class parts.

Don't try to implement one of the copying functions in terms of
the other. Instead, put common functionality in a third function that both call.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: