What are static variables?

前端 未结 3 439
南方客
南方客 2020-12-14 23:56

What are static variables designed for? What\'s the difference between static int and int?

3条回答
  •  猫巷女王i
    2020-12-15 00:35

    A static member can be referenced without an instance.

    See the "Static Members" section here: http://www.cplusplus.com/doc/tutorial/classes2/

提交回复
热议问题