So, I was trying to make a list of the different types of variables and wanted to confirm if my classification was correct or not.
Three types, I say:
1.Static/Class
2.Instance
3.Global
I understand that global variables are declared outside the class definition but static variables must be declared (not necessarily instantiated) within the class definition. Are there any more important differences between the class and global variables?
statichas a million different meanings.privateorprotectedorpublicto them, but you cannot declare a private local variable. A class instance, declared as a variable, may be local or global.