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
Tell me what are the __construct() and __destruct() methods in a php class?
Do you know what is the function func_num_args() used for?
What is the use of final class in php?
How many escape sequences are recognized in double-quoted strings?
Why use php artisan serve?
What is a path Traversal?
What are the different tables(engine) present in mysql, which one is default?
What are the difference between array_keys() and array_key_exists() in php?
Tell me how to set a page as a home page in a php based site?
How to run a php script?
What is the function to count elements in an array in PHP?
How many data types are there in php?
How to process the uploaded files?
Tell me how to create a text file in php?
What is mysqli_fetch_array?