+ 1
The initial value to a static member variable is done outside the class. Why?
The initial value to a static member variable is done outside the class. Why?
1 Antwort
0
Creating a static member within a class states that any objects associated with that class with contain the same value for the static member in every object.
You can not initalize a static member within a class, but in an object. Therefore, being able to alternate it along any other objects.