Читать книгу PHP This! A Beginners Guide to Learning Object Oriented PHP - Michelle Gosney - Страница 4

Chapter 1: PHP Objects & Classes Initial Confusion

Оглавление

The real problem in explaining object-oriented programming is that there is no absolute linear or sequential path to doing so, the key concepts are all global. They say men are linear thinkers and women are global thinkers. Men tend to look for a starting point and put things in sequential order, doing a single task at a time. Women are global thinkers in that they are pervasive, considering the big picture. The fundamental concepts of object-oriented programming are global in that way versus straight procedural programming which is clearly linear.

This is the benefit of OOP however it doesn't help in explaining it to someone who is new to it. Most teachers will start with the 3 main advantages of OOP: encapsulation, inheritance and polymorphism and then elaborate on them. This can be confusing.

PHP This! A Beginners Guide to Learning Object Oriented  PHP

Подняться наверх