Categories
PHP Programming

Public, private and protected methods and variables.

  • Public: access from everywhere.
  • Private: access is only permitted from inside the instantiated object.
  • Protected: accessed is permitted from inside the instantiated object, or from objects that are subclasses of the current object.

Leave a Reply

Your email address will not be published. Required fields are marked *