note 78862 added to language.oop5.final

From: Date: Wed, 31 Oct 2007 07:13:48 +0000
Subject: note 78862 added to language.oop5.final
Groups: php.notes 
Request: Send a blank email to php-notes+get-131849@lists.php.net to get a copy of this message
<?php class parentClass { public function someMethod() { } } class childClass extends parentClass { public final function someMethod() { } //override parent function } $class = new childClass; $class->someMethod(); //call the override function in chield class ?> ---- Server IP: 69.147.83.197 Probable Submitter: 201.248.193.55 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.final.php Edit -- https://master.php.net/note/edit/78862 Del: integrated -- https://master.php.net/note/delete/78862/integrated Del: useless -- https://master.php.net/note/delete/78862/useless Del: bad code -- https://master.php.net/note/delete/78862/bad+code Del: spam -- https://master.php.net/note/delete/78862/spam Del: non-english -- https://master.php.net/note/delete/78862/non-english Del: in docs -- https://master.php.net/note/delete/78862/in+docs Del: other reasons-- https://master.php.net/note/delete/78862 Reject -- https://master.php.net/note/reject/78862 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131849) next »