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
How can php and javascript interact?
Which is better wamp or xampp?
What are php applications?
How to remove the new line character from the end of a text line?
What is beforeRender() used?
What is associative array in php?
Are php sessions secure?
What is variable function php?
What is the string concatenation operator in php?
What is default session time in php?
What is difference between Method overriding and overloading in PHP?
Is it more secure to use cookies to trfer session ids?
How can you get the size of an image in PHP?
How do you destroy a particular or all Sessions?
Write a program to show the joining of two strings in php?