New course! Every coder should learn Generative AI!
Try a free lesson0
This is about the attribute properties. The use of the word 'visible' might be confusing. You should take it to mean accessible.
public: visible everywhere
protected: visible to the subclasses only
private: not visible from the outside
to:
public: accessible everywhere
protected: accessible to the subclasses only
private: not accessible from the outside of the class