There are various scenarios when you need a static member property:
- When counting number of object instances created from a particular class
- When logging some information at the class level instead of object instance level, etc.
To create a static property, you should know two important things:
Well, if you are a champion of prototypes, you must have guessed the answer in your mind by this time. Any way, let us move forward to see the implementation,