Inheritance and Interfaces in PHP

More from: | HackerNoon |
0

Introduction

Once upon the time,

there was a Web Developer who used to spend weeks and weeks updating the same lines of code.

This caused him very bad headaches.

One day browsing between blogs’ post he came across the words Object Oriented Programming and what happened next is astonishing…

In the previous post, you discovered the basics of the OOP paradigm in PHP,

From its simple syntax to the advantages of reusing the same code in a straightforward still powerful way.

Today you will learn how to best manage these objects and create long and safe relationships among them using inheritance and interfaces.

Inheritance What are inheritances on OOP?

We are now entering in one of the 4 basic pillars

(...)

Read full article » https://hackernoon.com/inheritance-and-interfaces-in-php-d46b61c65b84?source=rss----3a8144eabfe3---4


About | HackerNoon |

...how hackers start their afternoons....

»Twitter: @hackernoon »Facebook: @hackernoon