Quantcast
Channel: PHP
Viewing all articles
Browse latest Browse all 28

PHP Object Oriented Programming #5: Interfaces

$
0
0

In tutorial 5 on Object Oriented PHP Programming, we look at interfaces. More specifically, we create a user interface with a public method greeting. We then create english and french users which are required to implement the greeting method. Using a utility class, we then dynamically call the greeting method.

In doing so, we also take a quick look at the popular Factory design pattern near the end of the tutorial.

Video: 

Viewing all articles
Browse latest Browse all 28

Trending Articles