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
Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
How to execute an sql query?
Can age be a variable?
What is the purpose of the '.frm' file extension? What do thes file contain?
Is uploaded file php?
What are session variables in php?
Is overloading possible in php?
What does $_server means?
what is benefit of magento?
What is csrf token in php?
How to redirect a url from http to https in .htaccess?
How to get ip address of a server in php?
How to join multiple strings into a single string?
Is empty java?
How is it possible to remove escape characters from a string?