At 14:40 19/04/2004, Christian Schneider wrote:
Zeev Suraski wrote:
In my opinion it doesn't, because it breaks the interface of the parent class. I.e., you can no longer use code you've written to work with an object of the parent class, with an object of the child class, which breaks one of the most fundamental principals of OO. In turn, it

What about the generic/specialized class example? At least the constructor has to be allowed to be different, no? Or was that what you meant by "Maybe now that's constructors are out of the picture"?

That's exactly what I meant, constructors don't have implementation checks any longer...
If we can agree that for everything else we can apply these rules, including regular methods, it's a big step :)


Zeev

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to