note 108580 deleted from language.oop5.final by danbrown

From: Date: Thu, 10 May 2012 16:42:11 +0000
Subject: note 108580 deleted from language.oop5.final by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-187583@lists.php.net to get a copy of this message
Note Submitter: xdev at devxdev dot com ---- In regards to Anon, the reason that the following works is because they are private, NOT available to the child class, for example: <?php class A { final private function method(){} private function foo() {} } class B extends A { private function method(){} private function foo() {} } ?> Still no issues, final is for protecting say an important method from modification by a child, not to just save the name.

« previous php.notes (#187583) next »