PHP OOP : Access Modifier (public, protected, private)
What is the access modifier? Restrictions on properties and methods. Types of access modifier public protected private Public : Access on base as well as derived class and outside of the class. Everyone can see and access the data. Not secure. Override use. Protected : Base and Derived class. No one gets access throughout the … Read more