+ 1
I do this relation between two interface child. I want to display farther and son. Why it is null in this place? Thank you.
Display var1 and var2. https://code.sololearn.com/c182B1Pl1wsh/?ref=app
2 Respostas
+ 3
If you expected values instead of the null-values, you have to take a closer look at the concept of objects. You create two different, independent instances of the same class. Of course they don't know each other. So the variables are not set as long as you do so. Btw. there is no "relation" between your two objects except of the fact, that they are of similar type.
+ 1
Malick Diagne
Please use relevant words in the thread tags, a relevant language be in order,
Thank you!