Re: What should I name my base class?
| From: | Philippe Jadin | Date: | Thu, 18 Nov 2004 09:01:12 +0000 |
| Subject: | Re: What should I name my base class? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202397@lists.php.net to get a copy of this message | ||
Greg Beaver wrote:
Avoid base classes like the plague. They only limit future flexibility. Use inheritance like salt - as an enhancement for flavoring, otherwise you might develop high blood pressure ;). Better is to use delegation, factory or singleton as a way to access needed features, because then you can easily plug in new base functionality.Is it standard OO practice or PHP specific ? (lack of multiple inheritance for instance (pun intended somewhat)) Thanks Philippe (new to this group)
Greg