Answer Posted / 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 |
Post New Answer View All Answers
What is encapsulation in php with example?
How to set a value in session? How to remove data from a session?
Explain the difference between array_merge() and array_combine()?
What are the different loops in php?
What language is php based on?
What does the unset() function means?
Can I learn php in a month?
Tell us how can we display the output directly to the browser?
What is isset in php form?
What is difference between sql and php?
How can I display text with a php script?
Tell me are parent constructors called implicitly inside a class constructor?
What is the use of offset in mysql?
How do you check is php not empty?
Is overloading possible in php?