Can a static method access instance (non-static) variables?
Yes, a static method can access instance variables if you create an object of the class inside the method.
You're on the right track! A static method can access non-static variables if it has an object reference.
Can you explain why itâ€™s necessary to create an object to access instance variables inside a static method?