Re: abstract private methods
| From: | Stanislav Malyshev | Date: | Thu, 09 Jun 2005 08:56:19 +0000 |
| Subject: | Re: abstract private methods | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16576@lists.php.net to get a copy of this message | ||
JL>>some of them yet, but I release this code to be used. Someone comes along
JL>>and extends my class. If I have these future planned functions in as
JL>>abstract private, then they are protected for my future use in the base
JL>>class. The user extending my class will realize he needs to use a different
JL>>function name.
How would he? Private methods by definition can't be seen by child
classes, so whatever you do with private methods would have no influence
on inheriting class. That's the whole point in it, why I think it's of no
use - because you can't meaningfully both require override (abstract) and
hide from inherited classes (private).
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115