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
Can you pass an array into a function?
What is boolean in php?
So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?
Explain NULL?
Where php basically used?
How do I display php errors?
What is the difference between characters 23 and x23?
What is php default argument?
What is ci framework in php?
Can I learn php in a month?
How do you check if a variable has been set in php?
What are the uses of php language?
How to create and destroy cookies in php?
Tell me what is htaccess?
How to set session.gc_maxlifetime properly?