Learn OOP

Learn the concepts and techniques of Object-Oriented Programming with these OOP tutorials. Learn how to use classes and objects to create efficient, clean code.

All OOP tutorials:

  1. Design Patterns: The Simple Factory Pattern

    Design Patterns: The Simple Factory Pattern

    Tutorial Intermediate

    When you think of Factory, what comes in your mind? I would say a place where things are produced.

  2. Design Patterns: The Strategy Pattern

    Design Patterns: The Strategy Pattern

    Tutorial Intermediate

    So far we have covered three design patterns in this series. We have defined four categories of different design patterns. In this article, I am going to...

  3. Design Patterns: The Decorator Pattern

    Design Patterns: The Decorator Pattern

    Tutorial Intermediate

    Earlier in this series we explored the facade and adapter design patterns. Using facade, we can simplify large systems, and by implementing adapter we can...

  4. Design Patterns: The Adapter Pattern

    Design Patterns: The Adapter Pattern

    Tutorial Intermediate

    In the previous article we saw how the facade design pattern can be employed to simplify the employment of any large and complex system using only a simple...

  5. Design Patterns: The Facade Pattern

    Design Patterns: The Facade Pattern

    Tutorial Intermediate

    In this tutorial, we are going to cover the facade design pattern. It falls under the category of structural patterns because it deals with how your code...

  6. Object-Oriented Programming in WordPress: A Summary

    Object-Oriented Programming in WordPress: A Summary

    Tutorial Beginner

    At this point, it's time to draw this beginner's series to a close but prior to doing so, I'd like to provide a summary of each of the articles so that we...

  7. Object-Oriented Programming in WordPress: Inheritance II

    Object-Oriented Programming in WordPress: Inheritance II

    Tutorial Beginner

    In the previous article, we introduced the concept of object-oriented inheritance, attempted to place it laymen's terms, and then also took a high-level look...

  8. Object-Oriented Programming in WordPress: Inheritance I

    Object-Oriented Programming in WordPress: Inheritance I

    Tutorial Beginner

    One of the hardest parts of writing a series for beginners on object-oriented programming is knowing where to stop. There are so many topics to cover that...

  9. Object-Oriented Programming in WordPress: Document The Plugin II

    Object-Oriented Programming in WordPress: Document The Plugin II

    Tutorial Beginner

    At this point in the series, we're ready to move forward with rounding out our plugin by documenting our files, classes, functions, variables, and more. ...

  10. Object-Oriented Programming in WordPress: Building the Plugin II

    Object-Oriented Programming in WordPress: Building the Plugin II

    Tutorial Beginner

    In the previous article in this series, we finally began preparing the foundation for the plugin that we're going to be writing. Specifically, we took a...

  11. Object-Oriented Programming in WordPress: Building the Plugin I

    Object-Oriented Programming in WordPress: Building the Plugin I

    Tutorial Beginner

    At this point in the series, we're finally able to begin building our first plugin using the object-oriented techniques that we've learned thus far in the...

  12. Object-Oriented Programming in WordPress: Scope

    Object-Oriented Programming in WordPress: Scope

    Tutorial Beginner

    In continuing our discussion of object-oriented programming in WordPress, we need to begin talking about the idea of scope. In short, this refers to the...