How-to articles, tricks, and solutions about LANGUAGE-FEATURES

What does the 'static' keyword do in a class?

In a class, the static keyword is used to declare a static member, which belongs to the class itself rather than an instance of the class. This means that you can access a static member without creating an instance of the class.