If you’re storing a variable that shouldn’t be deleted when the object gets destroyed, it’s better to put it as a static variable than to store it inside the object.
If you’re storing a variable that shouldn’t be deleted when the object gets destroyed, it’s better to put it as a static variable than to store it inside the object.