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 does sign mean php?

762


What are headers in php?

740


What are the functions for imap?

803


Do you know what is php?

788


What is the default time in seconds for which session data is considered valid?

820


Why sessions are used in php?

716


When do sessions end?

728


What is the difference between get & post ?

806


How do I use isdigit function?

797


Tell us how can we display the output directly to the browser?

821


Do you know what is the function mysql_pconnect() usefull for?

719


Is php an api?

741


How to pad an array with the same value multiple times?

683


What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?

761


How do you check if a variable has been set in php?

738