Examples: Inheritance Example
Examples: Support for anonymous classes was added in PHP 7. Anonymous classes are useful when simple, one-off objects
Examples: Simple Object Iteration PHP 5 provides a way for objects to be defined
Examples: Property declaration Class properties must be defined as public, private
Examples: self:: usage Static references to the current class like self::
Examples: References and Objects One of the key-points of PHP 5 OOP that is often
Examples: property declarations Class member variables are called "properties"
Examples: Final methods example PHP 5 introduces the final keyword, which prevents
Examples: Sleep and wakeup
Examples: Example of object comparison in PHP 5 When using the comparison operator
Page 2 of 3