News Feed
Sections




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

DevShed:
More on Private Methods with PHP 5 Member Visibility
June 25, 2008 @ 13:58:20

DevShed finishes off their series looking a private, public and protected variables and methods in classes with this final look a private methods in PHP5 object-oriented programming.

It's time to leap forward and tackle this final article of the series, which will be focused on covering some additional aspects concerning the use of this kind of class method. In addition, I'll teach you how to utilize the "final" keyword, which is included with PHP 5, to prevent the methods of a specific class from being overridden by any subclass.

They work from a hands-on example to show how they can work with private methods (expanding a bit from last time) and how to use the "final" keyword to restrict any and all modification for a method.

0 comments voice your opinion now!
php5 tutorial oop member visibility method property final private


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso's Blog: Using a stream wrapper to access CouchDb attachments with PHP

ProDevTips.com: Multiple File Uploads with XHR and PHP

NETTUTS.com: How to Code a Signup Form with Email Confirmation

DevShed: Performing Basic Tasks with MySQL 4.1 and Above, using mysqli with PHP 5

7PHP.com: Auto Generate Properties Dynamically For Your Classes Using Magic Methods & Reflection


Community Events

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


podcast performance language symfony2 release community example php7 interview library configure series framework laravel conference introduction install api application opinion

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