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 to get no. of rows using MYSQL function?
What is the mysql injection?
Explain how can php and javascript interact?
What does a dependant variable mean?
Explain about require and include function?
What is PEAR?
How is it possible to set an infinite execution time for php script?
How to execute a php script from the command line?
What is the difference between nowdoc and heredoc?
How can we know that a session is started or not?
Do you know what does mvc stand for and what does each component do?
Write a program in php to print a table of a number?