Is state another name for field or is it something different? For example:private int telNumber;can I say about telNumber that it is a state or it is a field?
What is the difference between state and field?
java;terminology
Let's say I have the following class:public class Foo{    private int _bar;    private string _baz;    public Foo(int bar, string baz)    {        _bar = bar;        _baz = baz;    }    public void ChangeBar(int newBar)    {        _bar = newBar;    }}I can create an instance of the class like this:var myFoo = new Foo(3, Qux);The values for _bar and _baz collectively form myFoo's state.If I change _bar, like this:myFoo.ChangeBar(6);That means that the state of myFoo has changed, because one or more of the fields has changed.