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 |
How big is nvarchar max?
Which php framework is in demand?
How do I find out the number of parameters passed into function?
what is the abbrevation of PHP?
What is php pathinfo?
what method is used to get a user's IP address?
What is the use of the function 'imagetypes()'?
Why do we use cookie?
What is strcmp?
Can we override magic methods in php?
What is $_ files in php?
What kind of things have you done on the social side?