Displaying static data in C++
If a class contains static data, the static data will be shown
as part of the class when displayed. For example:
class A {
int x;
static int y;
}
A obj; You can also display the static member by referencing
it as A::y since each object of class A has the same value.