Questions on OOP concepts
1. What are the access specifiers available in php ? Explain
2. What is object cloning ?
3. What are the differences between interface and abstract
class ?
4. What is overloading ?
5. What is overriding ?
6. How to prevent function overriding ?
7. What is the use of "final" keyword ?
8. What is static variable ? How will access a static
variable ? What is static class ?
Answer Posted / isroy
4. Overloading in PHP provides means to dynamically
"create" members and methods. These dynamic entities are
processed via magic methods one can establish in a class for
various action types.
The overloading methods are invoked when interacting with
members or methods that have not been declared or are not
visible in the current scope. All overloading methods must
be defined as public.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
How to get the length of string?
Is php case sensitive?
How to increase the maximum execution time of a script in php?
Explain how can we increase the execution time of a php script?
Which escape sequences can be used in single quoted strings in php?
What is session in php w3schools?
Explain converting an object?
What are php filters?
What is different between software and app
When you want to show some part of a text displayed on an html page in red font color? What different possibilities are there to do this? What are the advantages/disadvantages of these methods?
How to initiate a session in php?
What is escaping to php?
Tell me what is the difference between get and post?
What are php parameters?
Explain preg_Match and preg_replace?