Properties defined in a class have "instance" scope. Each instance of the enclosing class will have its own set of instance properties, independent of any other instance of that same class.

Here, each instance of Foo has its own count property with its own independent value.

You can learn more about this in:
Run Edit