Re: calling a overwritten method???
| From: | Wolfram Kriesing | Date: | Wed, 23 May 2001 13:45:06 +0000 |
| Subject: | Re: calling a overwritten method??? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-160@lists.php.net to get a copy of this message | ||
> > class A
> > {
> > function go()
> > {
> > // do one thing
> > }
> > }
> >
> > class B extends A
> > {
> > function go()
> > {
> > // call the parent's method ---- HOW
> > // do another thing, additionally
>
> A::go();
>
>
> > }
> > }
but what if (in class B) i need to call this instance's parent method?
Because there might be some internal variables set or something!
then i would need something like $this->parent_go in class B or is that
also somehow possible with the :: ?
i mean what in Java is "super.methodName()"
Wolfram Kriesing