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

Which region of Africa benefited from the many gold mines located there? a. Northeastern Africa, near Egypt b. East Africa c. West Africa d. Madagascar
_____ is the main energy source for all life on earth.
68 increased by 75%
Which of the following numbers must be odd? (A) The sum of an odd number and an odd number. (B) The product of an odd number and an even number. (C) The sum of
In act III, scene I, of Shakespeare's Hamlet, why does Hamlet speak rudely to Ophelia, telling her "Get thee to a nunnery"?
People once believed that the world was flat. What changed their minds? A) the invention of the globe B) Queen Mary decreed the world was round C) continued t
what did the enabling act do?
What was a section of public land set aside to support public schools under the land ordinance of 1785
Which of the following would not have been considered a bourgeoisie? a. Banker c. Lawyer b. Doctor d. Priest
In 1975 Cambodia invaded and conquered South Vietnam. a. True b. False