I've learned that I should use Object(instance) for using instance field in static method.
For example:
INSTANCE FIELD(==speed)
that is declared in public class Car, should be used through Object in static method (ex. 'public static void main(String[] args)
)
like this.
Car myCar = new Car();
myCar.speed = 60;
So, the reason I should use object is because static method is located in CLASS and for being shared to objects, but on the other hand, instance field is just Frame that is not substance?
For using this instance field in static method, do I have to make the instance that is called 'object'?
In other words, is this process right?:
instance field -> OBJECT( substantialization) -> static method.
I'm wondering what I understood