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 |
Why many companies are switching their current business language to php?
How do you count numbers in php?
What is array filter php?
/temp is a type of filesystem directory. State Whether True or False?
Which function would you use to insert a record into a database in php?
Tell me what are the encryption techniques in php?
How to remove blank spaces from the string?
Explain soundex() and metaphone().
How to get complete current page url in php?
Is it more secure to use cookies to trfer session ids?
What is associative array in php?
What is the difference between php 5 and php 7?