There is a public : what is the default. There is also protected (protected) and private - it is not used at all outside the zone of visibility (this is if I understood correctly)!

How is it generally used, even if an instance of the class does not have access (this needs to be clarified)?

It is not clear what all this means and how to apply it correctly?

  • This is, so to speak, a personal property of the instance. You will be against it if someone climbs into your pocket, even if he also, like you, is learning php. - Vlad from Moscow
  • four
    "an instance of a class does not have access" - this is how an instance of a class has. But not his descendants. - PinkTux
  • as if, issue a reply pliz .. I understand how it looks but I do not understand how to apply - user33274
  • @Geyan, and most read the textbook on the basics - not? - PinkTux
  • @PinkTux. Ie it turns out if you add private, then the instance will inherit its properties? can that be so? I have already read them 2, there is nothing clear about it - user33274

0