Prev | Current Page 261 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"

This chapter presents general concepts surrounding
abstract classes, coupled with an introduction to PHP??™s class abstraction capabilities.
Namespaces: Namespaces help you to more effectively manage your code base
by compartmentalizing various libraries and classes according to context. In this
chapter I??™ll introduce you to PHP 6??™s new namespace feature.
194 CHAPTER 7 ?–  ADVANCED OOP FEATURES
?– Note All the features described in this chapter are available only for PHP 5 and above.
Advanced OOP Features Not Supported by PHP
If you have experience in other object-oriented languages, you might be scratching
your head over why the previous list of features doesn??™t include one or more particular
OOP features that you are familiar with from other languages. The reason might
well be that PHP doesn??™t support those features. To save you from further head
scratching, the following list enumerates the advanced OOP features that are not
supported by PHP and thus are not covered in this chapter:
Method overloading: The ability to implement polymorphism through functional
overloading is not supported by PHP and probably never will be.
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. Based on discussions found in the PHP developer??™s mailing list, it is unlikely
that this feature will ever be implemented.


Pages:
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273