Hi!

I understand why Interfaces can't have bodies, but could you explain why
Interfaces can't have properties?

Interfaces are API descriptions. API is usually seen as composed of functions. Some go even as far as recommending even classes don't have public properties at all :)

In any case, whenever you want to write $foo->bar, just write $foo->getBar() and $foo->setBar(), and it'd work :)
--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

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

Reply via email to