Ask Question
23 April, 13:51

Can you access an instance variable from a static method? explain why or why not.

+3
Answers (1)
  1. 23 April, 14:04
    0
    The reason a static method can't access instance variable is because static references the class not a specific instance of the class so there is no instance variable to access.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Can you access an instance variable from a static method? explain why or why not. ...” in 📗 Physics if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers