In my experience, the best place to look for text on object-oriented programming is beginners' C++ books. Sure, many of the features described there aren't available in PHP, but the ones that are are usually presented in a very slow, very easy to grasp manner with copious amounts of examples to make sure you get the point. My favourite is "Teach yourself C++ in 21 Days" by Jesse Liberty - this has so much content on what OOP is and why it is helpful that nearly all readers can benefit.
Want to learn PHP 7?
Hacking with PHP has been fully updated for PHP 7, and is now available as a downloadable PDF. Get over 1200 pages of hands-on PHP learning today!
If this was helpful, please take a moment to tell others about Hacking with PHP by tweeting about it!
Next chapter: Next chapter >>
Previous chapter: Exercises
Home: Table of Contents
Copyright ©2015 Paul Hudson. Follow me: @twostraws.