11-15-2007, 01:42 PM
|
#2 (permalink)
|
|
Super Moderator
Join Date: Sep 2007
Posts: 165
Thanks: 0
|
Really nice and clean mate, easy to read and definitely helps get a grasp on interfaces!
Can you think of another reason to use interfaces alike you have? I'm finding it hard to think of a good use for something similar to the:
PHP Code:
$pGroupEmailer->addGroup(new RecipientGroup_Admins()); $pGroupEmailer->addGroup(new RecipientGroup_Members());
Part, where you use multiple classes. Using only one would be easy, databases or something, but I cant think of a use for using two classes alike that....
|
|
|
|