note 56409 deleted from language.oop5.visibility by felipe

From: Date: Mon, 24 Mar 2008 22:57:40 +0000
Subject: note 56409 deleted from language.oop5.visibility by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-137514@lists.php.net to get a copy of this message
Note Submitter: gugglegum at gmail dot com ---- Parent class can access protected members of its childs. <?php class A { public function getProtected() { return B::$protected; } } class B extends A { protected static $protected = 'Hi, I am protected property of class B!'; } echo A::getProtected(); ?> It works at least in PHP 5.0.4.

« previous php.notes (#137514) next »