I know this is a basic question but I really struggle with this
I know I make a new object in class A thats why the sysout returns 0. How can I make it so that I GET the value 2 instead of null in class A, and that I'm able to SET things in class B. So I stay at the same object so to say.
I just want to be able to SET things in class B and GET that same value from the setter-getter-class-C, in class A. Please help