Abstract
While for many languages object orientation is simply a matter of course, it took several years before such features were incorporated into PHP. Yet the early forays into adding object-oriented features to the language were considered by many to be a poor attempt at best. Although the very basic premises of object-oriented programming (OOP) were offered in version 4, several deficiencies exist, including the following:
-
An unorthodox object-referencing methodology
-
No means for setting the scope (public, private, protected, abstract) of fields and methods
-
No standard convention for naming constructors
-
Absence of object destructors
-
Lack of an object-cloning feature
-
Lack of support for interfaces
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2007 W. Jason Gilmore, Bob Bryla
About this chapter
Cite this chapter
(2007). Object-Oriented PHP. In: Beginning PHP and Oracle. Apress. https://doi.org/10.1007/978-1-4302-0367-4_6
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0367-4_6
Publisher Name: Apress
Print ISBN: 978-1-59059-770-5
Online ISBN: 978-1-4302-0367-4
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books