Tag Archives: class static variables

Static Variables In C++ Classes

It turns out that static variables in C++ classes are actually pretty cool. If you declare a static variable at class level (i.e. inside the class declaration), then you are creating a variable that will a) be accessible to all objects created from that class, and b) be available even before you have created a […]