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
Does php require a web server?
How do I escape data before storing it in the database?
What is the difference between session_unregister() and session_unset()?
Is laravel better than codeigniter?
What are the new features in php 7?
How do I escape in php?
What is the difference between unset and unlink?
Which php framework is best for beginners?
What is difference between ksort() and usort() functions.
What is difference between print_r and echo in php?
What does a delimiter do in mysql?
How break and continue while loop in php?
How to get ip address of clients machine?
Can you extend a final defined class?
What is strstr php?