PHP Tutorials - Object Oriented Programming
This tutorial covers the following:
- The drawbacks to standard function libraries and how object-oriented programming helps to solve them
- How to declare, implement, and use classes in PHP5
- How to extend classes
- How to create hierarchies of related classes that share implementation and classes that expose common programming 'interfaces'
- Some of the other details and features of classes in PHP
Table of content (tutorial index)
advertisement
Moving Beyond Libraries
Some Basic Terminology
The Basics of Objects in PHP
Initializing and Cleaning Up Objects
Visibility: Controlling Who Sees Things
Class Constants
Static Member Variables
Static Methods
Extending Existing Classes
Reimplementing Methods from My Base Class
Class Hierarchies
Preventing Inheritance and Overriding
Exposing a Common Interface
Cloning Objects
User-Friendly Output
Type Hinting