News Feed
Sections




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

Lorna Mitchell:
A Little More OOP in PHP
November 01, 2012 @ 09:23:54

Lorna Mitchell has republished a previous article about OOP (following this entry) introducing you to some of the core object-oriented programming concepts in PHP.

This time around we'll look at some more advanced concepts and some more practical examples of building code, covering use of constructors and how to add access modifiers in to control how calling code can operate on your objects. We'll also show off how to create static methods and properties and, perhaps more importantly, illustrate applications of these features.

She talks about initializing objects with constructors, working with "statics" and using instanceof to determine the object type. Sample code is included to help illustrate the concepts.

0 comments voice your opinion now!
oop objectoriented programming introduction tutorial


blog comments powered by Disqus

Similar Posts

Wan Qi Chen: Background jobs with php and resque (Series, Parts 4, 5 & 6)

Gonzalo Ayuso's Blog: Using Monkey Patching to store files in CouchDb using the standard filesystem

Derick Rethans' Blog: MongoDB Cursors with PHP

IBM developerWorks: Efficient mathematical processing using Scilab through PHP

Three Devs & A Maybe Podcast: Delving into Laravel


Community Events

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


introduction release library podcast version interview performance opinion api composer php7 community extension framework symfony2 conference series voicesoftheelephpant example laravel

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