Re: How to call a member from the base class?

From: Date: Mon, 03 Sep 2001 13:51:06 +0000
Subject: Re: How to call a member from the base class?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65737@lists.php.net to get a copy of this message
On Monday 03 September 2001 09:47, A. op de Weegh wrote: > How do I make sure in the something() member of class B, that the parent > class member something() is also called? Can I do this: Hello there, person with the same name as self, :) class B extends A { function something() { // some other actions $this->something(); // calls A::something } } I've used this code for calling base class constructors. These ofcourse have different names, while your functions are both called the same. I don't think that should make any difference, though. ad.

« previous php.general (#65737) next »