On Friday 21 September 2001 15:15, Jean-Pierre Arneodo wrote:
> Hi!

> something looks strange for me.
> Why the method Fils::x is called?
> class Fils extends Pere {
>       function Fils(){
>               echo "<br>Fils::Fils called";
>               $this->Pere();
>       }
>       function x(){
>               echo "<br>Fils::x called";
>               parent::x();
>       }
>       function y(){
>               parent::x();
>       }
> }
>
> $f = new Fils();
> $f->x();
Because you called it here :))
Or am I missing something?
        Arpi

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to