I am by no means an expert with OOP, so if this is a blatantly retarded question please excuse my ignorance.

Given this code:

<?php
class A
{
    function foo()
    {
        echo __METHOD__;
    }
}

class B
{
    function bar()
    {
        // blah
    }
}

$instance = B::foo();
?>

output is "A::foo".

Is this correct? I would expect (want maybe :) ) to see output as "B::foo". If you need more information please let me know.

TIA

-dan

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to