The length is a primative value, so you only get the value, not a reference to the value. To have multiple pieces of internal data change in response to one value changing, you’d need a setter. Or you could use a getter to update/retrieve the value you intend.
Thank you for the knowledge that you shared. I did some experiments and found out that what you said was true and it is valid.
It looks like your understanding of the concepts is quite strong.
Haha…that doesn’t answer my question. But I think I got the answer. Anyways, it is nice knowing you. Keep helping us, who are just starting out. So, that we can do the same for others. @JeremyLT
That stuff is hard. Be patient with yourself and ask lots of questions if you get stuck. Learning how to get unstuck is a big part of becoming a programmer and sometimes that involves help.