I'm trying to understand the concepts of object oriented programming. (specifically in java) I'm not getting it.
1. first question, what is an internal state exactly?
2. and, "a object stores its state in fields" what does that mean?
3. so, you have an object, the object is in a current state. The object is able to do things (behavior) and can do them using methods, which changes its state. the method operates on an objects internal state (don't know what that means) is this right?
4. and then, i understand what an interface is, but not exactly in programming, only in real life objects lol.
5. so help would be appreciated, also, it would be nice if you could describe what i said up there about an object in a real life object, like for example a car's state, method, behavior, internal state, field etc.
thank you <><
1. first question, what is an internal state exactly?
2. and, "a object stores its state in fields" what does that mean?
3. so, you have an object, the object is in a current state. The object is able to do things (behavior) and can do them using methods, which changes its state. the method operates on an objects internal state (don't know what that means) is this right?
4. and then, i understand what an interface is, but not exactly in programming, only in real life objects lol.
5. so help would be appreciated, also, it would be nice if you could describe what i said up there about an object in a real life object, like for example a car's state, method, behavior, internal state, field etc.
thank you <><