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 factor made the most difference in how agriculture affected the economies of the colonies?
How did scientists discover the common structure of cells?
How many atoms are in 0.750 moles of zinc?
Explain how a species can evolve through natural selection.
By the mid-1700s, the largest city in the colonies was (A) New York (B) Boston (C) Philadelphia (D) Charleston (E) Wilmington, Delaware
Jim’s allowance is $1.20 per week. Stan’s is 25¢ per day. How long will they have to save, if they save both their allowances together, before they can get a m
How do scientists use seismic waves to determine the interior structure of Earth?
Dominick lives 1 3/4 miles from his school.  If his mother drives him half the way, how far will Dominick have to walk to get to school?
Which of the kingdoms has the smallest number of known species
How did scientists discover the common structure of cells?