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

When y = x^2, which of the following expressions is equivalent to –y ?
Estimate the angle of elevation from the trailhead to the summit.
Place the mouse, fruit fly, duck, and gorilla in order of their relatedness to humans, from least related to most related. a. mouse - fruit fly - duck - gorilla b
A pizza with 2 toppings from Maria's Pizza Place costs $11.00.A pizza with 5 toppings from Maria's Pizza Place costs $14.75.Each topping at Maria's Pizza Place
A midwestern music competition awarded 35 ribbons. The number of blue ribbons awarded was 3 less than the number of white ribbons. the number of red ribbons was
A pizza with 2 toppings from Maria's Pizza Place costs $11.00.A pizza with 5 toppings from Maria's Pizza Place costs $14.75.Each topping at Maria's Pizza Place
What is the average of 30, 40, and 80?
how do you figure out what is 1/4 of 10.
how do you figure out what is 1/4 of 10.
how do you figure out what is 1/4 of 10.