Login   Register  
PHP Classes
elePHPant
Icontem

There are more important things about OOP

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP Classes blog  >  Why is it better to d...  >  All threads  >  There are more important things about OOP  >  (Un) Subscribe thread alerts  
Subject:There are more important things about OOP
Summary:There are more important things about OOP that the autor missed
Messages:2
Author:Jordi
Date:2012-04-09 20:27:16
Update:2012-04-09 21:22:37
 

  1. There are more important things about OOP   Reply  
Picture of Jordi
Jordi
2012-04-09 21:18:52
There are more important features on the object oriented programming wich haven't been discused on the text.

One of them is the class heritage which makes you to save a lot of lines of code while maintaining the code complexity.

Furthermore, with a few knowledges of oop, you can create some sort of design patterns like the Singleton wich needs the private and static modifiers.

  2. Re: There are more important things about OOP   Reply  
Picture of Manuel Lemos
Manuel Lemos
2012-04-09 21:22:37 - In reply to message 1 from Jordi
Right, but as it was explained in the article and it was repeated several times in the comments, that was outside of the scope of this article.

The scope of the article was just about letting people that do not use OOP in PHP the main difference between global code and object oriented code, which is encapsulation.

Covering all advantages of object oriented programming would take a very long article and there are plenty of articles out there doing that already.