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 the difference between a session and cookies?
Is server side a session?
What library is used for pdf in php?
What is difference between session and cookie in PHP?
What are the methods of array in java?
Is wordpress a php framework?
How to convert a character to an ascii value?
How many escape sequences are recognized in double-quoted strings in php?
Inside a php function, what param needs to be set in order to access a global variable?
Is json a string php?
Write a query to find the 2nd highest salary of an employee from the employee table?
Differences between get and post methods?
What is final in php?
What is the use of session and cookies in php?
Why do we use polymorphism in php?