What are the differences between public, private, protected,
static, transient, final and volatile?
Answer Posted / nikunj
Public : access anyware in script
Protected: access only same class and access inherited class
Private: access only in same class
Final: restrict overriding with child class
| Is This Answer Correct ? | 59 Yes | 3 No |
Post New Answer View All Answers
Why do we use cookie?
How can we display information of a variable and readable by human with php?
What are the advantages of using php?
What is the importance of php?
What does $_ post mean in php?
What is string in php?
Is array function in php?
Explain which cryptographic extension provide generation and verification of digital signatures?
Tell me is it possible to submit a form with a dedicated button?
What is mysql_real_escape_string used for?
What is the use of array_search() in php?
How to write in a file in php?
Why does php start with variables?
How to pass variables by references?
Define anonymous classes in php7?