News Feed
Sections




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

NETTUTS.com:
Understanding and Applying Polymorphism in PHP
September 09, 2010 @ 11:13:37

On the NETTUTS.com site today there's a new tutorial by Steve Guidetti about understanding and handling polymorphism in PHP - making interfaces to multiple objects that all work the same way. In this tutorial he gets more in depth and includes some code to illustrate.

In object oriented programming, polymorphism is a powerful and fundamental tool. It can be used to create a more organic flow in your application. This tutorial will describe the general concept of polymorphism, and how it can easily be deployed in PHP.

He explains to concept of polymorphism for those that haven't seen it before - common interfaces to multiple objects - and how to can help make using the parts of your application much simpler. In his code examples he uses interfaces and abstract classes to make the connections. The interfaces define the structure to follow and the abstract classes are the multiple objects that must follow it.

0 comments voice your opinion now!
polymorphism tutorial interface abstract class


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso: Integrating WebSockets with PHP applications. Silex and socket.io playing together.

Evert Pot's Blog: Creating a Gopher server with PHP and InetD

DevShed: Centralizing the Validation of Data with the Observer Pattern in PHP

DevShed: Developing a Captcha Application with an Image Generator Class with PHP 5

Arnold Daniels' Blog: How I PHP: The Output Handler


Community Events





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


developer podcast list threedevsandamaybe interview series framework laravel code introduction opinion api community release symfony2 install unittest refactor testing language

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