Section 3.14. Inheritance of Interfaces


3.14. Inheritance of Interfaces

Interfaces may inherit from other interfaces. The syntax is similar to that of classes, but allows multiple inheritance:

 interface I1 extends I2, I3, ... {     ... } 

Similar to when classes implement interfaces, an interface can only extend other interfaces if they don't clash with each other (which means that you receive an error if I2 defines methods or constants already defined by I1).



    PHP 5 Power Programming
    PHP 5 Power Programming
    ISBN: 013147149X
    EAN: 2147483647
    Year: 2003
    Pages: 240

    Similar book on Amazon

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net