News Feed
Sections




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

Elated.com:
Object-Oriented PHP Working with Inheritance
May 27, 2011 @ 09:21:20

On Elated.com there's a new introduction to working with inheritance in PHP for object-oriented applications. They work through some of the basic concepts including parent/child classes, final and abstract classes and interfaces.

In this article we're going to explore the idea of inheritance in object-oriented programming, and how inheritance works in PHP. With inheritance, your objects and classes can become much more powerful and flexible, and you can save a lot of time and effort with your coding.

They start with the basics of how inheritance works and then move right into creating child classes from a parent. Their example code makes a basic forum system (just example code, not fully functioning) with administrators, members and forum creation. They use this as a base to show the method overriding and exposure with "final". The finish it off with examples of two things that can promote good application structure - abstract classes an interfaces.

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


blog comments powered by Disqus

Similar Posts

Jani Hartikainen's Blog: Zend_Acl part 2: different roles and resources, more on access

Pascal Opitz's Blog: An example of how to use Pimple DI with ZF 1.x

Pathfinder Blog: PHP Spam Injection First Aid with Apache ModSecurity

ThinkPHP Blog: Methods to Reduce the Load of Your Webserver by Caching Content

PHPMaster.com: Implementing a Unit of Work - Handling Domain Objects through a Transactional Model


Community Events





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


laravel podcast composer language extension version introduction configure api install release series community interview list unittest conference opinion voicesoftheelephpant symfony

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