Inheritance Question

From: Date: Wed, 09 Oct 2002 01:18:29 +0000
Subject: Inheritance Question
Groups: php.general 
Request: Send a blank email to php-general+get-119360@lists.php.net to get a copy of this message
Hi all, Was just wondering which is the better way to call an inherited method from a child class? Example: class foo { function jk() { echo "In here!"; } } class bar extends foo { function do_something() { //Either this one... $this->jk(); //Or this one...?? foo::jk(); } } Which is the best way? Is one a way a less memory intensive way than the other? Thanks in advance Jarrad Kabral

« previous php.general (#119360) next »