note 29834 deleted from keyword.extends by danbrown

From: Date: Wed, 17 Jun 2009 19:05:51 +0000
Subject: note 29834 deleted from keyword.extends by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157032@lists.php.net to get a copy of this message
Note Submitter: j237fl at hotmail dot com ---- This code fragment does NOT seem to work. It seems as though, the PHP engine when loading a class dosen't set the member vars FIRST, it seems as though it loads the BasicLife member vars before the Super Class methods. class BasicLife extends Benefit{ //MEMBER VAR simply REFERS TO METHOD OF SUPER CLASS var $simply = Benefit::get_simply(); //MEMBER VAR me REFERS TO METHOD OF THIS->CLASS var $me = $this->get_me(); function BasicLife(){//CONSTRUCTOR} function get_me(){} }

« previous php.notes (#157032) next »