1.

What is different types of Visibility?

Answer»

PHP have three access MODIFIERS such as public, private and protected.

  • public scope of this VARIABLE or function is available from ANYWHERE, other classes and instances of the object.
  • private scope of this variable or function is available in its own class only.
  • protected scope of this variable or function is available in all classes that EXTEND CURRENT class including the parent class.


Discussion

No Comment Found