I keep hearing the term object has behavior and state or just one of them. But what is the difference or what does it mean, and if anyone can give an example I would really appr
fields or state can be thought of current conditions within an object. A banana's state would be its shape and colour and size
Methods or behaviours can be thought of its acting. With the banana, whether it is ripe or dry can be the behaviour.