Re: OOP, Classes, Sharing Code

From: Date: Mon, 28 Jun 2004 18:46:40 +0000
Subject: Re: OOP, Classes, Sharing Code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-189172@lists.php.net to get a copy of this message
On Mon, 28 Jun 2004 13:41:19 -0500, Jay Blanchard <jay.blanchard@niicommunications.com> wrote: > If you are going to duplicate code why not just create a generic class > with the code that would be duplicated and then extend the class as > required? > What generic class name would be appropriate in this case? I just can't see how I would link the two together. Also, they would have to use fairly generic variables names if I were to do this. Like using the variable $items for the array of classes of either albums or photos. Or maybe this is exactly what OOP is about and I'm just starting to get it. -- Joel Kitching http://midgardmanga.keenspace.com/

« previous php.general (#189172) next »