O'Reilly logo

Pro PHP and jQuery by Jason Lengstorf

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Object-Oriented Programming

In this chapter, you'll learn the concepts behind object-oriented programming (OOP), a style of coding in which related actions are grouped into classes to aid in creating more-compact, effective code.

The backend of the project you'll be building in this book is heavily based on OOP, so the concepts covered in this chapter will be referenced often throughout the rest of the exercises you'll complete.

Understanding Object-Oriented Programming

As stated above, object-oriented programming is a style of coding that allows developers to group similar tasks into classes. This helps keep code following the tenant "don't repeat yourself" (DRY) and easy-to-maintain.

Note

For further reading on DRY programming, see http://en.wikipedia.org/wiki/Don't_repeat_yourself ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required