slides/advphp/objtips.xml
Object Tips
32/57
Overloading
PHP5 OO
  • • Objects in PHP are not references by default
  • • Objects are internally an array of properties and an array of methods
  • • Private methods should start with a '_' in order to denote their access levels.
  • • Inheritance can be used to share methods between multiple classes
  • • Overloading helps you facilitate lazy evaluation/lazy caching
  • • Aggregation helps facilitate creating dynamic interfaces which loads methods at runtime