inheritance php4

From: Date: Tue, 12 Dec 2006 19:00:27 +0000
Subject: inheritance php4
Groups: php.general 
Request: Send a blank email to php-general+get-245767@lists.php.net to get a copy of this message
Ok, I have a class which inherits from a parent class. My first thought is that the child class inherits all of the functions of the parent but that doesn't seem to be the case, do I really have to put parent::somefunction() to call each one? Why can't I just use $this->parentfunction(); within the child class? Thanks! class Parent{
    function getAddress(){}
} class Child extends Parent{ function getInfo(){ $this->getAddress(); //throws error } }

« previous php.general (#245767) next »