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 does the scope of variables means?
Is time a dependent variable?
What is use of preg_replace in php?
Does session expire on closing browser?
Why use static methods php?
What is a query in a database?
What are headers in php?
Do you know how can php and html interact?
How to connect to a url in php?
What is the use of strpos in php?
How to break a file path name into parts?
Tell me what are the different types of errors in php?
Why triggers are used in mysql?
What is whitespace in html?
What is difference between get and post?