Classes
| From: | Brandt Everett | Date: | Wed, 07 Jun 2000 03:17:32 +0000 |
| Subject: | Classes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-1156@lists.php.net to get a copy of this message | ||
Is there a way to override a function in an inherated class, and call back
the parent?
Example
class Test
{
function Display()
{
print "This is TestDisplay";
}
}
class NewTest extends Test
{
function Display()
{
print "This is NewTestDisplay\n";
Test->Display();
}
}
Expected output
This is NewTestDisplay
This is TestDisplay
--end Expected output
Any help would be great.
Brandt
everett@bentonrea.com