Posted by : Rhyf Ahmad Friday, May 22, 2015

Object - oriented programming (OOP) requires a different way of thinking about how you construct your applications. Objects enable you to more closely model in code the real - world tasks, processes, and ideas that your application is designed to handle. Instead of thinking about an application as a thread of control that passes chunks of data from one function to the next, an OOP approach enables you to model the application as a set of collaborating objects that independently handle certain activities.
As an analogy, when a house is being constructed, the plumbers deal with the pipes, and the electricians deal with the wires. The plumbers don ’ t need to know whether the circuit in the bedroom is 10 amps or 20 amps. They must concern themselves only with their own activities. A general contractor ensures that each subcontractor is completing the work that needs to be accomplished, but isn ’ t necessarily interested in the particulars of each task.
An OOP approach is similar in that each object hides from the others the details of its implementation. How it does its job is irrelevant to the other components of the system. All that matters is the service that the object is able to provide. The concepts of classes and objects, and the ways in which you can leverage these ideas in the development of software, are the fundamental ideas behind OOP. This is, in a sense, the opposite of procedural programming, which is programming using functions and global data structures. As you ’ ll see, an OO approach provides significant benefits over procedural programming and (with the new implementation of OO support that first appeared in PHP5, and was further improved in PHP6) some large performance boosts as well.

Contents:

What Is Object-Oriented Programming?
  1. OOP Advantages
  2. A Real-World Example

Understanding OOP Concepts
Classes
  1. Objects
  2. Inheritance
  3. Interfaces
  4. Encapsulation

Changes to OO in PHP6



Ebook Preview
Get the ebook now (317 kB)

If the link above doesn't work, try the link below


Mirror: Get the ebook now (317 kB)

Leave a Reply

You can leave a comment to request any article(s), software(s), ebook(s) or report the dead link.
Then I will reply as soon as I can :)

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Recent Post

Recent Posts Widget
Instagram

- Copyright © Madriva -Robotic Notes- Powered by Blogger - Designed by Johanes Djogan -