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.

Get Beginning C++ Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.