multiple inheritance & problem

From: Date: Mon, 30 Oct 2000 18:19:26 +0000
Subject: multiple inheritance & problem
Groups: php.general 
Request: Send a blank email to php-general+get-22716@lists.php.net to get a copy of this message
is multiple inheritance supported in php4.0 and later..??? havent seen much examples though... Problem... i cant run my classes... please check the code below...(veh.inc) class Vehicle { // define a few attributes var $model; var $owner; var $color; function set_model ($model) { $this->model = $model; print "<BR>Vehicle set to $this->model.<BR>"; } }//end class vehicle now i include this class in another file .. a.php <?include("veh.inc"); $auto=new Vehicle; ?> i get the following error... class Vehicle { var $model; var $owner; var $color; function set_model ($model) { $this->model = $model; print " Vehicle set to $this->model. "; } }//end class vehicle Fatal error: Cannot instantiate non-existent class: vehicle in d:\tmp\php\test\a.php on line 2 whats wrong...??? my sys. conf. is win2kpro php4.0 -------------------------------------------------------------------------------------- SECURITY IS A MYTH........!!!!!!!! "Linux for people with avg. IQ above 98" -------------------------------------------------------------------------------------- Subhrajyoti Moitra ------- C/212 Hall-I IIT-Kanpur India 208016 email: subhra@iitk.ac.in

« previous php.general (#22716) next »