New course! Every coder should learn Generative AI!
Try a free lesson+ 3
Review the lesson about access modifiers more carefully. Private members are accessible only in the class where they are declared. Not in their child classes that extend them.
https://www.sololearn.com/learn/Java/2156/