What are the differences between public, private, protected,
static, transient, final and volatile?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / naresh
in object by default all variables are presistent. so some
time we want to avoid that variables means we use transient
for that variable.
| Is This Answer Correct ? | 5 Yes | 8 No |
Answer / bharanikumar
can u plz give me more informa for protected
| Is This Answer Correct ? | 2 Yes | 11 No |
What is the meaning of "enctype= multipart/form-data" ?
What is the difference between mysql_fetch_array() and mysql_fetch_assoc()?
What are the security measures we have to take for our site not to hack by others?
Which of the following represents the proper way to set a session variable? Answer: a. $_SESSION['foo'] = 'bar'; b. session_start(); c. session_set_save_handler ('myopen', 'myclose', 'myread', 'mywrite', 'mydelete', 'mygarbage'); d. $foo = $_SESSION['foo']; 2.When administering MySQL, you should make the data directory accessible via the operating system 3.which statement can be used to determine how the optimizer resolves a query
What is the purpose of the '.frm' file extension? What do thes file contain?
How can we increase execution time of a php script?
How to close a session properly?
What is the use of mysql_real_escape_string() function?
What do the initials of php stand for?
Binary tree question - Node has numeric data (int) The function takes depth as argument and sum all the value of the node of the depth. For instance, (0) depth 0 / \ 10 20 depth 1 / \ / \ 40 50 60 70 depth 2 so if you pass get_sum(2), you would return 220 which is 40+50+60+70 (sum of depth2) write the function.
How can you send email in php?
Does php class need constructor?