What is meant by public, private, protected, static and final scopes?
Answer / Mohammad Jafar
In PHP, classes can have properties and methods with different access levels. Public properties/methods can be accessed from anywhere. Private properties/methods can only be accessed within the class. Protected properties/methods can be accessed within the class and its child classes. Static properties/methods are shared among all instances of a class. Final means that a property or method cannot be overridden in a child class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Which library is used in php to do various types of image work?
What is a null coalescing operator in php7?
how many types of inheritance is there in php? name there?
What is uri routing?
Make a "dynamic drop down list" with using only PHP,HTML and MySQL..
Binary tree question - Node has numeric data (int) The function takes depth as argument and sum all the value of the node of the depth. For instance, (0) depth 0 / \ 10 20 depth 1 / \ / \ 40 50 60 70 depth 2 so if you pass get_sum(2), you would return 220 which is 40+50+60+70 (sum of depth2) write the function.
Tell me how can I display text with a php script?
Why php is also called as scripting language?
What is api laravel?
What is the role of the .htaccess file in php?
Write a program to get second highest number in an array using php?
when will be syndicate bank written exam ? i need the date of exam