News Feed
Jobs Feed
Sections




News Archive
Wes Shell's Blog:
Encapsulation in PHP
October 13, 2009 @ 09:05:16

Wes Shell has posted a new tutorial to his blog today looking at encapsulation in PHP development - containing parts of the script to make them easier to work with as a whole.

In order to understand the purpose of encapsulation you first need to understand the purpose of classes. [...] In order for them to be used properly as they were designed, you will need to limit how users of the class can interact with those characteristics and functionality.

He looks at the visibility modifiers (public/private/protected), interface functions and some sample code showing how to use them in a simple class to work with a Person's set of data.

1 comment voice your opinion now!
tutorial encapsulation visibility


blog comments powered by Disqus

Similar Posts

WeberDev.com: User Authentication With patUser (Part 1)

Netmag.co.uk: Make your own Soap

JellyandCustard.com: Regular Expressions in PHP

Enrico Zimuel's Blog: PHP session sharing using Zend Server CE and MS SQL Server

PHPBuilder.com: Create a Unit Conversion Application w/the Zend_Measure Component


Community Events











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


opinion rest language functional unittest conference zendframework2 release phpunit testing introduction framework development usergroup community series symfony2 podcast database interview

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