note 111026 added to oop4.constructor

From: Date: Tue, 08 Jan 2013 10:26:56 +0000
Subject: note 111026 added to oop4.constructor
Groups: php.notes 
Request: Send a blank email to php-notes+get-192831@lists.php.net to get a copy of this message
if you using php 5 or above, u have to define the constructor in class B for it to be called when defining the B instance...currently, it calls only A's constructor and its specified correctly...note the line "PHP 4 does not care if the function is being defined in class B, or if it has been inherited." ---- Server IP: 69.147.83.199 Probable Submitter: 114.31.251.103 ---- Manual Page -- http://php.net/manual/en/oop4.constructor.php Edit -- https://master.php.net/note/edit/111026 Del: integrated -- https://master.php.net/note/delete/111026/integrated Del: useless -- https://master.php.net/note/delete/111026/useless Del: bad code -- https://master.php.net/note/delete/111026/bad+code Del: spam -- https://master.php.net/note/delete/111026/spam Del: non-english -- https://master.php.net/note/delete/111026/non-english Del: in docs -- https://master.php.net/note/delete/111026/in+docs Del: other reasons-- https://master.php.net/note/delete/111026 Reject -- https://master.php.net/note/reject/111026 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#192831) next »