News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Freek Lijten:
SOLID - The L is for Liskov Substitution Principle
September 04, 2012 @ 08:37:46

In this new post to his site Freek Lijten picks back up his series on the SOLID design principles with a look at the "L" in the acronym - the Liskov Substitution Principle.

The Liskov Substitution Principle (LSP) was coined by Barbara Liskov as early as 1987. The principle is very tightly connected to the earlier discussed Open Closed Principle. A good way of adhering to the OCP is understanding and implementing code that uses the Liskov Substitution Principle. In this article we will discover why and how.

He gives a more understandable explanation of what the rule tries to suggest - a standardized interface that each of his "Bike" instances follows to ensure the contract of a consistent API. Then each of the child classes can reliably assume that there are methods they can use because they'll always inherit them.

0 comments voice your opinion now!
liskov substitution principle solid design series


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso: Talk about SOLID and Symfony at the deSymfony 2014 conference.

Community News: Packagist Latest Releases for 09.09.2013

Decal CMS Blog: Testing your website before launching: how to let content drive design (Part 1)

Stefan Mischook's Blog: PHP Sessions Video Tutorials - Part 3

Community News: Packagist Latest Releases for 08.31.2014


Community Events





Don't see your event here?
Let us know!


version podcast framework release laravel community voicesoftheelephpant update library series package install composer tool security introduction symfony opinion interview language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework