php中双冒号的施用

php中双冒号的应用?php ????class?Fruit ?? { ??????static?function?color() ?? ????{ ??????????return

php中双冒号的应用

              <?php ????class?Fruit ?? { ??????static?function?color() ?? ????{ ??????????return?"color"; ?? ????} ????????static?function?showColor() ?? ????{ ??????????echo?"show?"?.?self::color(); ?? ????} ??} ????class?Apple?extends?Fruit ?? { ??????static?function?color() ?? ????{ ??????????return?"red"; ?? ????} ??} ????Apple::showColor(); ??//?output?is?"show?color"! ?? ???>??

            ?

            程序运行结果:
            show color