1、static对象包括:

  global对象

  namespace作用域下的对象

  在class,function,file作用域内的static对象

2、在方法内的static对象成为 local static对象,其他的称为non-local static对象。

3、static对象只被初始化一次。

相关文章:

  • 2021-12-28
  • 2021-09-12
  • 2021-04-14
  • 2021-05-11
  • 2021-04-04
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-31
  • 2022-02-09
  • 2021-07-02
  • 2021-11-19
  • 2021-06-27
  • 2021-10-12
  • 2022-12-23
相关资源
相似解决方案