The Factory Design Pattern in PHP PRO

The factory design pattern enables the creation of new objects without having the need to specify the classes that should be instantiated. The following video clip explains this pattern and overviews a sample for its implementation in PHP.

The source code is available for free download in my PHP Design Patterns course at www.abelski.org.

Share:

The Visitor Design Pattern

The Visitor Design Pattern

The visitor design pattern allows us to add operations to objects that already exist without modifying their classes and without extending them.

The Beauty of Code

Coding is Art! Developing Code That Works is Simple. Develop Code with Style is a Challenge!

Update cookies preferences