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


Please Help Members By Posting Answers For Below Questions

What is difference Between PHP 5 and 7?

509


Are sessions stateless?

484


What is string and its function?

511


How to assigning a new character in a string using php?

537


Is learning php easy?

524






How to convert a json string to an array in php?

549


Tell me how would you declare a function that receives one parameter name hello?

532


What is php and how do you use it?

525


Why do you need php?

518


What is PECL?

775


What is a controller in programming?

487


Where is session id stored?

511


What is difference between array_merge and array_combine?

516


Explain how we can retrieve the data in the result set of mysql using php?

500


What is the difference between explode () and split () functions in php?

607