So whenever you need to create a variable that needs to be shared by all instances or methods in a class, then and only then it makes sense to use class variables
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
So whenever you need to create a variable that needs to be shared by all instances or methods in a class, then and only then it makes sense to use class variables