Constructor Inheritance

From: Date: Mon, 21 May 2001 15:17:49 +0000
Subject: Constructor Inheritance
Groups: php.dev 
Request: Send a blank email to php-dev+get-56062@lists.php.net to get a copy of this message
Hello all, I am new to PHP, so please appologize if my question looks silly... How do I inherit a class that inherits the constructor behaviour from the parent class, assuming the parent class cannot be changed? For instance, class A { // this class is already define, not changeable function A() // does something } } class B extends A { function B() // inherits A construction: how do I do this? // does something else } } Thanks in advance, Tiago

« previous php.dev (#56062) next »