What is encapsulation in oop php?
Answer / gokilavani s
Encapsulation is fundamental concepts in object oriented programming
Encapsulation provides three main benifits
Data hiding
Code organization
Code reusability
Php using access modifiers public, protected, private control access to the modified and properties
Public- accessible from anywhere
Protected - accessible within class and subclass
Private - accessible only in the class itself
| Is This Answer Correct ? | 0 Yes | 0 No |
Why ide is recommended for use while programming with php?
What is difference between static and final in php?
What is the purpose of pear in php?
What is php pathinfo?
How to open a file in php?
how to make website package setup like desktop software setup ... that front end and backend can include in setup like single package...?
What is namespaces in PHP?
How does php strcmp work?
Do you know how can we check the value of a given variable is a number?
Tell me how comfortable are you with writing html entirely by hand?
Tell me what does the scope of variables means?
how to extract month from given date by using string functions?