- Modern C++:Efficient and Scalable Application Development
- Richard Grimes Marius Bancila
- 57字
- 2021-06-10 18:28:14
Declaring static members
You can declare a member of a class--a data member or a method--static. This is similar in some ways to how you use the static keyword on automatic variables and functions declared at file scope, but there are some important, and different, properties to this keyword when used on a class member.