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 language is php written in?

694


How is traits used in php?

621


What are the ways to include file in php?

607


Which is better php or nodejs?

598


Tell me how the result set of mysql be handled in php?

569






Which function is used to read a file removing the html and php tags in it upwork?

572


discuss the issue of software theft in ghana and how it has affected the economy

1768


Explain what is memcache?

599


What is env in laravel?

626


What is the use of nl2br() in php?

660


Is null or empty c#?

597


What are php data types?

599


What type of comments are supported by PHP.

648


How easy is php?

619


Tell us how to set cookies in php?

604