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
Why session timeout is important?
How can cross site request forgery csrf be prevented?
How can you declare the array in php?
What are the advantages of object-oriented programming in php?
What is php rest api?
What is new keyword in php?
What does $_ post mean in php?
What is zend studio for?
Explain the syntax for ‘foreach’ loop with example.
Can I include php in javascript?
Write a program to get lcm of two numbers using php?
What is PHP's configuration file called?
How is the ternary conditional operator used in php?
What should be the length of variable for SHA256?
What is php and why it is used?