Sunday, April 17, 2011

OOP features not supported by PHP

Compare to other OOP languages like JAVA, PHP will not support some of OOP concepts. We should aware of these before going to implement complete OOP based programing.
1.Namespaces: Initial PHP5 version has this feature. But its support was removed in lateral stages. It's not clear whether namespace support will be integrated into a future version.
2. Method overloading: The ability to implement polymorphism through functional overloading is not supported by PHP and, according to a discussion on the Zend Web site, probably never will be. Learn more about why at http://www.zend.com/php/ask_experts.php.
3.Operator overloading: The ability to assign additional meanings to operators based upon the type of data you're attempting to modify did not make the cut this time around. According to the aforementioned Zend Web site discussion, it is unlikely that this feature will ever be implemented.
4.Multiple inheritance: PHP does not support multiple inheritance. Implementation of multiple interfaces is supported, however.

No comments:

Post a Comment