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 mvc php?
What is PHP's configuration file called?
Where is the submitted form data stored?
How to open a file for reading?
How to make multilanguage site in php? (like english,tamil)
How is the ternary conditional operator used in php?
Tell me how can we check the value of a given variable is alphanumeric?
What is php and its features?
What is the use of php and mysql?
What is PHP? Who is the father or inventor of PHP?
What is the function used to change the root directory in PHP?
Is python easier than php?