Re: extending class then calling its original function
| From: | Jason Wong | Date: | Wed, 31 Jul 2002 10:04:56 +0000 |
| Subject: | Re: extending class then calling its original function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110489@lists.php.net to get a copy of this message | ||
On Wednesday 31 July 2002 18:36, lallous wrote:
> Hello when I extended a class and overwrite a function, can i after
> overwriting that function call it so it does what it used to do?
>
> for example in Delphi I say:
>
> procedure TMyExtendedClass.Proc1;
> begin
> // do new stuff here
> inherited; // calls the TMyClass.Proc1;
> end;
Yes.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Q: What do you call a WASP who doesn't work for his father, isn't a
lawyer, and believes in social causes?
A: A failure.
*/