note 101009 added to language.oop5.decon

From: Date: Fri, 19 Nov 2010 19:46:47 +0000
Subject: note 101009 added to language.oop5.decon
Groups: php.notes 
Request: Send a blank email to php-notes+get-174211@lists.php.net to get a copy of this message
here is my multiple constructor. <?php class foo { protected $mam = 'mamam'; function __construct() { echo 'foo'; } } class bar extends foo { function __construct() { parent:: __construct(); // use parent method to call parent class echo 'bar'; } } class foobar extends bar { function __construct() { parent:: __construct(); echo 'foobar'; } } $show = new foobar(); /* result is foobarfoobar */ ?> ---- Server IP: 69.147.83.197 Probable Submitter: 122.144.3.3 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.decon.php Edit -- https://master.php.net/note/edit/101009 Del: integrated -- https://master.php.net/note/delete/101009/integrated Del: useless -- https://master.php.net/note/delete/101009/useless Del: bad code -- https://master.php.net/note/delete/101009/bad+code Del: spam -- https://master.php.net/note/delete/101009/spam Del: non-english -- https://master.php.net/note/delete/101009/non-english Del: in docs -- https://master.php.net/note/delete/101009/in+docs Del: other reasons-- https://master.php.net/note/delete/101009 Reject -- https://master.php.net/note/reject/101009 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#174211) next »