Nick Wilson wrote:

>Is there a better way? It just seems like overkill to include 6-700
>lines of methods /twice/
>
Use inheritance. Define a "base" class with all of the methods in it. 
Then define the two other classes to extend this base class, meaning 
they will have all of the methods you have defined but can implement 
their own variables:

http://www.php.net/manual/en/keyword.extends.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to