OBJECT ORIENTED PROGRAMMING IN PHP5

Download Free Object Oriented Programming In PHP5.pdf Polymorphism/overloading. PHP supports polymorphism in the sense of allowing instance of subclasses to be used in place of parent instances. The correct method will be dispatched to at runtime. There is no support for method overloading, where dispatch happens based on the method's signature-each class only has one method of a given name. • Static (or class) functions. PHP offers static properties and static methods as of version 5. It is also possible to call methods via the Classname::function() syntax. • Introspection. PHP offers a wide variety of functions here, including the capability to recover class names, methods names, and properties names from an instance. In the next section, we cover the basic PHP syntax for OOP from the ground up, with some simple examples.

Table of Contents
  • Basic PHP Constructs for OOP
  • Advanced OOP Features
    Public, Private, and Protected Members ~ Interfaces ~ Constants ~ Abstract Classes ~ Simulating class functions ~ Calling parent functions ~ Calling parent constructors ~ The special name parent ~ Serialization ~ Introspection Functions
  • OOP Style in PHP. The PEAR Coding Style
    Indenting, whitespace, and line length ~ Formatting control structures ~ Formatting functions and function calls ~PHPDoc
Download

0 Response to "OBJECT ORIENTED PROGRAMMING IN PHP5"