note 103725 deleted from language.oop5.visibility by danbrown

From: Date: Fri, 29 Apr 2011 21:07:25 +0000
Subject: note 103725 deleted from language.oop5.visibility by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179291@lists.php.net to get a copy of this message
Note Submitter: notarealemail at whatever dot com ---- In response to ryan dot m dot lange at gmail dot com's note, the child classes cannot access $this->foo because foo was declared private, if you need to access or modify foo in a child class, use the protected keyword. Alternatively, keep the foo private and make protected or public getter/setter methods.

« previous php.notes (#179291) next »