note 108580 added to language.oop5.final

From: Date: Tue, 08 May 2012 19:19:51 +0000
Subject: note 108580 added to language.oop5.final
Groups: php.notes 
Request: Send a blank email to php-notes+get-187528@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 67.171.181.60 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.final.php Edit -- https://master.php.net/note/edit/108580 Del: integrated -- https://master.php.net/note/delete/108580/integrated Del: useless -- https://master.php.net/note/delete/108580/useless Del: bad code -- https://master.php.net/note/delete/108580/bad+code Del: spam -- https://master.php.net/note/delete/108580/spam Del: non-english -- https://master.php.net/note/delete/108580/non-english Del: in docs -- https://master.php.net/note/delete/108580/in+docs Del: other reasons-- https://master.php.net/note/delete/108580 Reject -- https://master.php.net/note/reject/108580 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#187528) next »