Mcchoconel Mcchoconel
  • 01-03-2017
  • Physics
contestada

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

Respuesta :

Аноним Аноним
  • 01-03-2017
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.
Answer Link

Otras preguntas

Between 1995 and 2000, cities such as Chicago and New York lost 6% of their African-American residents while the black populations of Dallas, Charlotte, and Atl
Which of the following means "the general willingness of consumers to buy a specific quantity of a product at different prices"? supply demand quantity supplied
What is the role of Canada’s Governor General?
An igloo is made of ice and snow. Which state of matter is used to make an igloo
Which of the following would NOT be considered a cause of technological progress? A. scientific research B. innovation C. patents D. large markets
As a member of a music club, you can order CDs for $14.99 each. The music club also charges $4.99 for each shipment. The expression 14.99n + 4.99 represents the
Which of the following would not be a way we can cut back on our use of oil? A. Using less heat in the winters B. Using more heat in the winters C. Using cars t
ideas about social order
(x - 4)2 = 36 Which of the following expressions represents the solutions to the given equation?
All of the following phrases describe a partnership except a. shared responsibility for decisions. b. low start-up costs. c. the involvement of up to 20 part