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

Can we override magic methods in php?

746


What is polymorphism with example in php?

694


How long does a php session last for?

781


What is a string in php?

743


How is it possible to set an infinite execution time for php script?

733


Is php used in 2019?

725


What are php libraries?

698


A process can run only in the background. State Whether True or False?

833


How to insert a line break in php string?

726


What is difference between count or sizeof function in php?

735


What is ci in php?

733


Is laravel better than codeigniter?

788


What is http php?

684


Do loops php?

745


"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.

1731