C静态成员变量和静态成员函数.docxVIP

  • 4
  • 0
  • 约1.26万字
  • 约 16页
  • 2019-09-14 发布于广东
  • 举报
C卄静态成员变量和静态成员函数 Data members can be divided into two types: static variables and non static variables Static member of a static class to join the static modifier, is a static member? Can directly use the class name + static members access the static members, because static members exist in memory, non static members will need to instantiate the allocation of memory, so the static members cannot access non static members? Because static members exist in memory, so non static members can directly access the static members of the class. Non static members: all with no Static members are non stat

文档评论(0)

1亿VIP精品文档

相关文档