php-general | 2001062
Date: 06/23/01
- Next message: Noah Spitzer-Williams: "[PHP] gd library on win2k?"
- Previous message: McShen: "Re: [PHP] newbie algorithm help!!!!!"
- Next in thread: Aral Balkan: "Re: [PHP] OOP"
- Reply: Aral Balkan: "Re: [PHP] OOP"
- Reply: Matthew M. Boulter: "Re: [PHP] OOP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello!
Is it possible to do normal inheritance on PHP?
I've following code:
--->
class one
{
function one()
{
echo "one ";
}
}
class two extends one
{
function two()
{
echo "two ";
}
}
class three extends two
{
function three()
{
echo "three";
}
}
$foo = new three();
<---
And the output of this programm is "three", but not "one two three" :(
Best regards,
Andrew Kirilenko,
Seniour Programmer / System Administrator,
Internet Service.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Noah Spitzer-Williams: "[PHP] gd library on win2k?"
- Previous message: McShen: "Re: [PHP] newbie algorithm help!!!!!"
- Next in thread: Aral Balkan: "Re: [PHP] OOP"
- Reply: Aral Balkan: "Re: [PHP] OOP"
- Reply: Matthew M. Boulter: "Re: [PHP] OOP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

