adspace


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

sort term descripttion form, report and uery

2257


how to detect a mobile device using php

1177


Write a program using while loop?

1125


What is trait in php?

1071


What is difference between static and final in php?

1112


What is the current stable version of php? What advance thing in php7?

1098


How to create a web form?

1116


List some features of php that are deprecated in php7?

1026


What is the current stable version of php?

1128


How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain

1082


Explain me is it possible to destroy a cookie?

1034


if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer

1996


How to calculate the difference between two dates using php?

1149


What sized websites have you worked on in the past?

1090


Tell me what kind of things have you done on the social side?

1069