Loading…

What is different types of Visibility?

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.

Suggest An Answer

No suggestions avaliable!

Latest post from oops interview questions

Ask Question