Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2821 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90767 invoked from network); 26 Jun 2003 10:05:48 -0000 Received: from unknown (HELO ied.ac.cn) (211.99.43.218) by pb1.pair.com with SMTP; 26 Jun 2003 10:05:48 -0000 Received: (qmail 11514 invoked by uid 610); 26 Jun 2003 17:16:16 +0800 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 26 Jun 2003 17:16:16 +0800 Date: Thu, 26 Jun 2003 17:16:16 +0800 (CST) X-X-Sender: hewei@web.ied.ac.cn To: Sebastian Bergmann cc: internals@lists.php.net Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] aggregation? From: hewei@ied.org.cn (Wei He) On Thu, 26 Jun 2003, Sebastian Bergmann wrote: > Wei He wrote: > > How could I live without aggregation or multiple inheritance? > > Java developers are very happy without these concepts. Why? Because > they have interfaces. Guess what? We have them, too. If I understand correctly, using of interfaces will force a subclass to implement an interfaced method even if this method behaves the same as one of its parent classes. If so I'll have to copy method codes from parent classes like what I have do so in PHP4 without aggregation. Right? Wei He