Re: Suggestions for class design

From: Date: Mon, 19 Sep 2005 18:00:55 +0000
Subject: Re: Suggestions for class design
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-222675@lists.php.net to get a copy of this message
Jay Blanchard wrote:
[snip] Well, yes I think it does, but what I'm missing is how this new object interacts with the original one if it does at all. And what would I call it? 'Multiple_Customers'? Or.. perhaps just 'Customers'! :) Do I extend the Customer class or is it a stand alone class? [/snip] I think that it should be a stand alone class. The Customers class could instantiate the needed number of Customer objects and the methods of the Customers class could affect each Customer object. +1 for this idea, it is a method I have used on countless projects and works very well.
Mikey

« previous php.general (#222675) next »