OOP

From: Date: Sat, 23 Jun 2001 20:04:14 +0000
Subject: OOP
Groups: php.general 
Request: Send a blank email to php-general+get-54985@lists.php.net to get a copy of this message
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.

« previous php.general (#54985) next »