Hello Wei, Friday, June 27, 2003, 12:09:04 PM, you wrote:
WH> On Fri, 27 Jun 2003, Marcus Börger wrote: >> Hello Wei, >> >> Friday, June 27, 2003, 3:36:11 AM, you wrote: >> >> WH> On Thu, 26 Jun 2003, Marcus Börger wrote: >> >> >> WH> If so I'll have to copy method codes from parent classes like what I >> >> WH> have do so in PHP4 without aggregation. Right? >> >> >> >> No, the method implementations are inherited. >> >> WH> Got it. Many thanks. >> >> No, you didn't. WH> You are right I didn't. >> >> WH> So if I understand correctly this time, it will make no difference from MI >> WH> when there is no overlap method and property in all parent classes. >> >> Sorry, but this is no OOP teaching class. Maybe you have a look at this: WH> Sorry for that. I didn't know anyhing about interfaces until I had to seek WH> for a solution for lacking of multiple inheritance. WH> I'll keep silent to accept what php5 can give me. Just one last question: WH> How, using php5 interfaces, can one avoid implementing method 'doit' WH> twice? Thanks. You just found the major disadvantage between interfaces and MI. The solutionS to that is are very complex....and require often more typing then one would like to. -- Best regards, Marcus mailto:[EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php