Re: Inheritance-problem
| From: | Martin | Date: | Wed, 09 Aug 2000 11:59:09 +0000 |
| Subject: | Re: Inheritance-problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10900@lists.php.net to get a copy of this message | ||
No, nothing of your choices ;-)
class A
{ function DoSomething()
{ print "Class A visited";
}
}
class B extends A
{ function DoSomething()
{ print "Class B visited";
A::DoSomething(); ## Doesn't work, only for example
}
}
I want to make (in PHP3):
$b = new B();
$b->DoSomething();
The output shout be:
Class B visited Class A visited
(This is only a stupid example, I know ;-))
Regards
Martin