note 63590 deleted from language.oop5.decon by cmb

From: Date: Sun, 08 Sep 2019 10:27:54 +0000
Subject: note 63590 deleted from language.oop5.decon by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212142@lists.php.net to get a copy of this message
Note Submitter: jcaplan at bogus dot amazon dot com ---- __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).

« previous php.notes (#212142) next »