5-Hiding the Implementation1c语言.pptVIP

  • 4
  • 0
  • 约7.68千字
  • 约 29页
  • 2017-05-21 发布于河南
  • 举报
5-Hiding the Implementation1c语言

5. Hiding the Implementation Zhao,Qingjie zhaoqj@bit.edu.cn Beijing Institute of Technology Why class ? The class defaults to private, whereas the struct defaults to public. Lient programmer can use the created libraries to build an application or another library. If no limits, client programmers can do anything they want with a struct. 5.1 Setting limits There are two reasons for controlling access to members: The first is to keep the client programmer’s hands off tools they shouldn’t touch. The second reason for access control is to allow the library designer to change the internal w

文档评论(0)

1亿VIP精品文档

相关文档