Justtechjobs.com Find a programming school near you






Online Campus Both


OO Design: Abstract Classes
PHP has evolved into a feature-rich, widely deployed web development solution. With each new version released, new features appear, while existing features are improved. PHP's object support is one such feature that has been improved. Object oriented support first appeared in PHP3. PHP4 made additional improvements, such as the way constructors are handled. In fact, the up and coming Zend Engine 2.0 introduces a new object model, more similar to Java. With PHP's object support maturing, many of the reasons developers might not take an object oriented approach are diminishing.
This article is the first in a series of articles that will focus on various object-oriented design topics. In this article we are going to talk about the concepts surrounding abstract classes, situations where they are useful in design, how we can implement abstract classes in PHP, and hopefully some helpful examples to demonstrate the concepts covered.

Prerequisites

In order to get the most out of this article, you need to have a solid understanding of several OO concepts, such as:  what is an object, defining an object, instantiation, inheritance, and object composition. For an in depth look at the before mentioned topics, check out some of the other great articles in the Application Architecture / Object Oriented section on this site. With that being said, let's move on to our discussion of abstract classes and how you can use them in design.
[ Next Page ]


Comments:
ric@hotmail.comRic McElvin04/22/05 11:07
jim@hotmail.comJim Dultz04/22/05 11:06
classesnekesa04/05/05 08:57
RE: Some improvementsEd Williams04/16/03 11:40
RE: Some improvementsOrlando Roebuck03/24/03 03:12
RE: bah! whoopie frickin doo!Ryan Norris02/26/03 13:19
RE: Some improvementsCurtis Miles02/23/03 08:24
example of abstact-class applicationIlya02/20/03 00:13
RE: bah! whoopie frickin doo!Cash02/18/03 19:22
bah! whoopie frickin doo!anonymous coward02/12/03 05:00
RE: Some improvementsJonathan Griffin02/11/03 01:14
Some improvementsJurre Thiel02/09/03 14:15
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.