note 63590 added to language.oop5.decon

From: Date: Fri, 24 Mar 2006 17:52:38 +0000
Subject: note 63590 added to language.oop5.decon
Groups: php.notes 
Request: Send a blank email to php-notes+get-106537@lists.php.net to get a copy of this message
__construct and __destruct must be declared public in any class that you intend to instantiate with new. However, in an abstract (or never-instantiated base) class you can declare them private or protected, and subclasses can still refer to them via parent::__construct (!) (tested in PHP 5.1.2). ---- Server IP: 66.163.161.117 Probable Submitter: 207.171.180.101 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.decon.php Edit -- http://master.php.net/note/edit/63590 Del: integrated -- http://master.php.net/note/delete/63590/integrated Del: useless -- http://master.php.net/note/delete/63590/useless Del: bad code -- http://master.php.net/note/delete/63590/bad+code Del: spam -- http://master.php.net/note/delete/63590/spam Del: non-english -- http://master.php.net/note/delete/63590/non-english Del: in docs -- http://master.php.net/note/delete/63590/in+docs Del: other reasons-- http://master.php.net/note/delete/63590 Reject -- http://master.php.net/note/reject/63590 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#106537) next »